#include<iostream>
using namespace std;
int main()
{int n,i,r=0;
char a[100],*p;
cin.get(a,100);
n=strlen(a);
cout<<"Vocalele din sir"<<endl;
for(p=a;*p;p++)
if(strchr("aAeEiIoOuU",*p))
{cout<<*p<<";";r++;}
cout<<endl;
cout<<r<<" vocale in sir"<<endl;
cout<<"Perechile de vocale"<<endl;
for(p=a;*p;p++)
if(strchr("aAeEiIoOuU",*p) && strchr("aeiouAEIOU",*(p+1)) && *(p+1)!=NULL)
cout<<*p<<";"<<*(p+1)<<endl;
cout<<endl;
}
Orar semigroup #2
Tema
joi, 28 octombrie 2010
by DlMuresan
2 comments