Where is i declared before it is used in the first three lines?
Based on the usage, I would guess that it should be declared as int i; somewhere before it is used, and initialized to some value.
If this isn't the problem, please edit the question and add the code that precedes the first 3 lines shown.
If this answers your question, please click on the ...
The goal of programming is to create a program which gets a task done efficiently. So as long as the program works well, there is no right nor wrong way to program.
Also, good job coming up with another solution to the problem set. :)
So after further tinkering with my code I started first encrypting the letters and then printing them individually, I am not sure why check50 found it to be an error when I did those things at the same time, but it did.
If anyone knows why - please let me know.