The output is right, but check50 says that it is wrong![enter image description here]1

[removed code per academic honesty guidelines]

1 Answer 1


You've certainly taken a novel approach to adding your key to your plaintext!

The issue you are having is that you are checking that you've gone past 'z' or 'Z' before you actually increment the char.

If you run ./caesar 1 and then plaintext of "zZ" you'll see what I mean.

Increment your char first before testing it.

You must log in to answer this question.

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