Friday, August 19, 2011

Program to check whether given alphabet is vowel or not using If Else statement.

//Program to check whether given alphabet is vowel or not using If Else statement.
#include<stdio.h>
#include<conio.h>
void main()
{
 char c;
 printf("\n Enter the alphabet:");
 scanf("%s",&c);
 if(c=='a'|| c=='e'|| c=='i'|| c=='o'|| c=='u')
 {
  printf("\n alphabet is vowel");
 }
 else
 {
  printf("\n alphabet is not vowel");
 }
 getch();
}

Previous Next Home
0 Comments
Comments

Leave a Comment

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Twitter Delicious Facebook Favorites More