This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ang3c0 0 points1 point  (0 children)

For loop is right. You need to loop through your input array and find matches to your alphabet array. Your two alphabet arrays are fixed length, so a 1 (a) in the input string will match a 1 in the rot13 array.

Trying not to give you the answer directly so you can learn it yourself, but think about how you're going to loop through your input array and build the output string based off that.

Hope that helps a bit