Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- int main()
- {
- std::string str;
- std::getline(std::cin, str);
- for(int index = 0; index < str.length(); index++){
- str[index] = tolower(str[index]) + 3;
- if(str[index] > 122){
- str[index] = tolower(str[index]) - 26;
- }
- }
- std::cout << str;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement