MeehoweCK

Untitled

Apr 16th, 2023
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string x;
  8.     cin >> x;
  9.     int d = x.size();
  10.     for (int i = 0; i<d; i++)
  11.     {
  12.         if (x[i] == 'a') cout << '4';
  13.         else if (x[i] == 'e') cout << '3';
  14.         else if (x[i] == 'i') cout << '1';
  15.         else if (x[i] == 'o') cout << '0';
  16.         else if (x[i] == 's') cout << '5';
  17.         else cout << x[i];
  18.     }
  19.     return 0;
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment