Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
code
#include <iostream> #include <string> using namespace std; int main() { string str,key="aaaaaaaaaaaaaaaaaaaa"; cin >> str; for(int i=0; i<str.length(); i++) { if(str[i]+key[i]-'a'+1>'z') str[i]='a'+str[i]+key[i]-'a'+1-'z'; else str[i]+=key[i]-'a'+1; } cout << str; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
string
Dejalo a la Suerte
bmp_lb
odws
const_cast
cppbasic
project
HI
Functions-Part I
binary
Please log in to post a comment.