Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- using namespace std;
- char v[]="aeiou",s1[50],s2[50];
- int main()
- {
- int i;
- cin.getline(s1,50);
- cin.getline(s2,50);
- for(i=0;i<strlen(s1);i++)
- {
- if(strchr(v,s1[i])!=0 && strchr(v,s2[i])!=0) cout<<'*';
- else if(strchr(v,s1[i])==0 && strchr(v,s2[i])==0) cout<<'#';
- else cout<<'?';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement