ShriRam Changed status to publish July 15, 2022
#include<stdio.h>
#include<conio.h>
void main()
{
char a[100],i=0,v=0,c=0;
printf("Enter your Name : ");
scanf("%s",a);
while(a[i]!='\0')
{
if(a[i]=='a'|| a[i]=='e'|| a[i]=='i'|| a[i]=='o'|| a[i]=='u')
v=v+1;
else
c=c+1;
printf("Vowel=%d and Consonent=%d \n",v,c);
i=i+1;
}
printf("\n%d vowel\n %d consonent",v,c);
getch();
}
ShriRam Changed status to publish July 15, 2022