Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- string x;
- cin >> x;
- int d = x.size();
- for (int i = 0; i<d; i++)
- {
- if (x[i] == 'a') cout << '4';
- else if (x[i] == 'e') cout << '3';
- else if (x[i] == 'i') cout << '1';
- else if (x[i] == 'o') cout << '0';
- else if (x[i] == 's') cout << '5';
- else cout << x[i];
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment