Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace 04. Caesar Cipher
- {
- class Program
- {
- static void Main(string[] args)
- {
- string text = Console.ReadLine();
- string cipher = string.Empty;
- for (int i = 0; i < text.Length; i++)
- {
- char letter = text[i];
- letter += (char)3;
- cipher += letter;
- }
- Console.WriteLine(cipher);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement