Sunday, April 13, 2014

A C PROGRAM TO FIND VOWELS COUNT

#include <stdio.h>
#include<conio.h>

void main()
 {
   char letter;

   int vowel_count = 0;
   clrscr();
   
   for (letter = A; letter <= Z; letter++)
     switch (letter) {
       case A:
       case E:
       case I:
       case O:
       case U: vowel_count++;
     }; 

   printf("The number of vowels is %d
", vowel_count);

   getch();
 }



0 comments:

Post a Comment

 

Information Technology News Copyright © 2016 | Powered by Blogger