Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. char s[256],voc[11]="aeiouAEIOU",s1[256];
  5. int n,i,nrv,j,ma,l;
  6. int main()
  7. {
  8. cin>>s>>s1;
  9. l=strlen(s);
  10. for(i=0;i<l;++i)
  11. if(strchr(voc,s[i])>0&&strchr(voc,s1[i])>0)
  12. cout<<"*";
  13. else
  14. if(strchr(voc,s[i])==0&&strchr(voc,s1[i])==0)
  15. cout<<"#";
  16. else
  17. cout<<"?";
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement