Advertisement
Teodora2310

Varianta 93

Nov 17th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. folosirea spațiului de nume std;
  4. char a [205], b [205], s [205];
  5. int principal ()
  6. {
  7. int i;
  8. cin >> a >> b;
  9. pentru (i = 0; i <strlen (a); i ++)
  10. {
  11. if (strchr ("aeiou", a [i])! = 0 && strchr ("aeiou", b [i])! = 0)
  12. {
  13. s [i] = '*';
  14. }
  15. if (strchr ("aeiou", a [i]) == 0 && strchr ("aeiou", b [i]) == 0)
  16. {
  17. s [i] = '#';
  18. }
  19. if ((strchr ("aeiou", a [i])! = 0 && strchr ("aeiou", b [i]) == 0) || (strchr ("aeiou", a [i]) == 0 && strchr ("aeiou", b [i])! = 0))
  20. {
  21. s [i] = '';
  22. }
  23. }
  24. cout << s;
  25. returnare 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement