#include<stdio.h>
#include<string.h>
int main()
{
int i,length,count = 0;
char anik[100000];
gets(anik);
length = strlen(anik);
for(i=0;i<length;i++)
{
if(anik[i] == 'a' || anik[i] == 'e' || anik[i] == 'i' || anik[i] == 'o' || anik[i] == 'u' || anik[i] == 'A' || anik[i] == 'E' || anik[i] == 'I' || anik[i] == 'O' || anik[i] == 'U')
{
count++;
}
}
printf("%d\n",count);
return 0;
}
#include<string.h>
int main()
{
int i,length,count = 0;
char anik[100000];
gets(anik);
length = strlen(anik);
for(i=0;i<length;i++)
{
if(anik[i] == 'a' || anik[i] == 'e' || anik[i] == 'i' || anik[i] == 'o' || anik[i] == 'u' || anik[i] == 'A' || anik[i] == 'E' || anik[i] == 'I' || anik[i] == 'O' || anik[i] == 'U')
{
count++;
}
}
printf("%d\n",count);
return 0;
}
Comments
Post a Comment