Denistod

Untitled

Nov 18th, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 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. else
  23. {
  24. s[i]='?';
  25. }
  26. }
  27.  
  28. }
  29. cout<<s;
  30. return 0;
  31. }
  32. 93-varianta corecta!!!!!!!!!!!!
Advertisement
Add Comment
Please, Sign In to add comment