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