Denistod

Untitled

Nov 18th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. using namespace std;
  4. char a[101],b[101],s[101];
  5. int main()
  6. {
  7. int i;
  8. cin.getline(a,201);
  9. cin.getline(b,201)
  10. for(i=0;i<=strlen(a);i++)
  11. {
  12. if(strchr("aeiou",a[i])!=0&&strchr("aeiou",b[i])!=0)
  13. {
  14. s[i]="*";
  15. }
  16. else
  17. {
  18. if(strchr("aeiou",a[i])==0&&strchr("aeiou",b[i])==0)
  19. {
  20. s[i]="#";
  21. }
  22. }
  23. else
  24. {
  25. aux[i]="?";
  26. }
  27. }
  28. cout<<s;
  29. return 0;
  30. }
  31. 93
Advertisement
Add Comment
Please, Sign In to add comment