Advertisement
Guest User

Untitled

a guest
Nov 17th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. void qwe (string a)
  6. {
  7. string s="qwertyuiopasdfghjklzxcbnmq";
  8.  
  9. for (int i=0;i<28; i++)
  10. {
  11. if (a[0]==s[i])
  12. {
  13. cout<<s[i+1];
  14. break;
  15. }
  16. }
  17.  
  18. }
  19.  
  20. int main ()
  21. {
  22. string a;
  23. cin>>a;
  24. qwe(a);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement