I'm really stuck on Caesar Cipher. It compiles but the ciphered text doesn't look like it should. Instead of one line of text, every character gets printed one by one.


Could you please help me with this?


You have an extra (misplaced) {something} in some printf statement. What would cause every letter to print on a "new line"?

Some unsolicited advice.

Recall from the spec:

So that we can automate some tests of your code, your program must behave per the below. Assumed that the underlined text is what some user has typed.

username@ide50:~/workspace/pset2 $ ./caesar 13
Be sure to drink your Ovaltine!
Or fher gb qevax lbhe Binygvar!

Consider this as a test you should run before you submit your program to check50. Are your results for the test the same as the example supplied? If not, there's more work to do before it's ready.

  • Thank you! It was so easy I'm ashamed ;) It seems the problem was my "return 0"
    – Anka
    Dec 21 '16 at 16:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .