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