Important Program of C language in O level exam january 2019
Important Program of C language in O level exam january 2019 Write a program to calculate number of vowels (a, e, i, o, u) separately in the entered string. #include<stdio.h> #include<conio.h> void main() { char ch[200]; int a,e,i,o,u,index; a=i=o=u=e=0; clrscr(); printf("Enter your string>> "); gets(ch); for(index=0;ch[index]!='\0';index++) { switch(ch[index]) { case 'a' : ...
Comments
Post a Comment