Advertisement
pranto_95

Check vowel

Jun 25th, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.     char x;
  4.     int i,c=0;
  5.     for(i=1;i<=5;i++){
  6.             scanf(" %c",&x);
  7.             if(x=='A'||x=='E'||x=='I'||x=='O'||x=='U'||x=='a'||x=='e'||x=='i'||x=='o'||x=='u'){
  8.                     c++;
  9.             }
  10.     }
  11.     printf("Number of vowel is %d",c);
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement