#include <string>
using namespace std;
int main()
{size_t saya=0,sayac=0,say=0,sa=0,s=0;
string c;
getline(cin,c);
for(int i=0;i<c.length();i++)
{if(c[i]=='a')
sayac++;
else if(c[i]=='e')
saya++;
else if(c[i]=='i')
say++;
else if(c[i]=='o')
sa++;
else if(c[i]=='u')
s++;
}
cout<<"a="<<sayac<<endl;
cout<<"e="<<saya<<endl;
cout<<"i="<<say<<endl;
cout<<"o="<<sa<<endl;
cout<<"u="<<s<<endl;
}
Hiç yorum yok:
Yorum Gönder