• Post Reply Bookmark Topic Watch Topic
  • New Topic

What must I do in order to let the program encrypt the Capital letter of the message?  RSS feed

 
tangara goh
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have tried this Caeser Cipher exercise but so far I can only encrypt either Capital or non-capital depending if I put my String Alphabet as Cap or small letters.

Hence, I would like to ask if anybody in the forum how to make my code do both.

The requirement of this programme is that I can't use arrays.

 
Stephan van Hulst
Saloon Keeper
Posts: 7821
142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, that depends on your requirements.

If I have the string "HelloWorld" and the key is 1, what should the output be? The same question, but for the strings "zzz" and "ZZZ".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!