Guest User

Untitled

a guest
Feb 12th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main ()
  7. {
  8.  
  9. string Str="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";
  10. string Chars="!@#$%^&*()_+-/.<>";
  11. string Numbers="1234567890";
  12. string inputStr;
  13. cin>>inputStr;
  14.  
  15. for (int i=0;i<=inputStr.length();i++)
  16. {
  17. for(int j=0;j<=inputStr.length();j++)
  18. {
  19. if (inputStr[i]==Str[j]) cout<<Str[j];
  20. else if (inputStr[i]==Chars[j]) cout<<Chars[j];
  21. else if (inputStr[i]==Numbers[j]) cout<<Numbers[j];
  22. }
  23. }
  24. }
Add Comment
Please, Sign In to add comment