I'm struggling to check50/submit50 for the caeser cipher wk2 pset for CS50. Can anyone please advise what mistake I'm making?
Code as linked: https://pastebin.com/5B7tcaGg
I'm attempting to use; check50 cs50/problems/2020/x/caesar
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.Sign up to join this community
Your code prints an extra '.'(period) character along with the ciphered-character with each call made to printf function in order to print ciphered text. That is causing the check50 tests to fail.
Also, do the error checking for BAD KEY VALUES i.e., when the user inputs a floating-point number, a negative numeric value or a non-numeric value(e.g., a string) as KEY.
Including meaning full comments in your code is never a bad idea :)