#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char a[80];
int i=0,j,vcnt=0;
clrscr();
printf("Enter a string\n");
gets(a);
while(a[i]!='\0')
{
if(a[i]=='a'||a[i]=='e'||a[i]=='i'||a[i]=='o'||a[i]=='u')
{ vcnt++;
}
i++;
}
printf("\nvowel count=%d",vcnt);
getch();
}
#include<conio.h>
#include<string.h>
void main()
{
char a[80];
int i=0,j,vcnt=0;
clrscr();
printf("Enter a string\n");
gets(a);
while(a[i]!='\0')
{
if(a[i]=='a'||a[i]=='e'||a[i]=='i'||a[i]=='o'||a[i]=='u')
{ vcnt++;
}
i++;
}
printf("\nvowel count=%d",vcnt);
getch();
}
Thanks a lot..
ReplyDeleteThank u very much
ReplyDeletethere is no such big space between the 2nd last line and the 3rd last line
ReplyDelete