Advertisement
Spocoman

02. Caesar Cipher

Nov 21st, 2023
687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     string message;
  8.     getline(cin, message);
  9.  
  10.     for (size_t i = 0; i < message.length(); i++) {
  11.         message[i] += 3;
  12.     }
  13.        
  14.     cout << message << endl;
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement