count number of vowels in a string in c
#include<stdio.h>
2 int num_vowels(char*);
3 void main()
4 {
5 char s[10];
6 int c;
7 printf("Enter the string...n");
8 scanf("%s",s);
9 c=num_vowels(s);
10 printf("%d",c);
11 printf("n");
12 }
13 int num_vowels(char*s)
14 {
15 int c=0;
16 int i;
17
18 for(i=0;s[i]!='