write a c program to find the no of occurrences of vowels in a given string
Answers
Answered by
1
#include<stdio.h>
#include<string.h>
#include<conia.h>
void main()
{
int len, i;
char st[100]
int v=0;
clrscr()
printf("Enter the string:");
scanf("%s",$st);
len = strlen(st)
for (I=0;<len;i++)
{
if(St[I]=='a'||st[i]=='e'|| St[I]=='i'|| St[i]=='o'|| St[I]=='u')
v=v+1;
}
prinf("\nNo. of vowels in the given string is %d",v);
getch(),
}
#include<string.h>
#include<conia.h>
void main()
{
int len, i;
char st[100]
int v=0;
clrscr()
printf("Enter the string:");
scanf("%s",$st);
len = strlen(st)
for (I=0;<len;i++)
{
if(St[I]=='a'||st[i]=='e'|| St[I]=='i'|| St[i]=='o'|| St[I]=='u')
v=v+1;
}
prinf("\nNo. of vowels in the given string is %d",v);
getch(),
}
Similar questions