SHARE
TWEET

Cipher (+3)

Okiko Apr 19th, 2019 168 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <string>
  4.  
  5. int main()
  6. {
  7.     std::string str;
  8.     std::getline(std::cin, str);
  9.  
  10.     for(int index = 0; index < str.length(); index++){
  11.         str[index] = tolower(str[index]) + 3;
  12.  
  13.         if(str[index] > 122){
  14.             str[index] = tolower(str[index]) - 26;
  15.         }
  16.     }
  17.  
  18.     std::cout << str;
  19.  
  20.     return 0;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top