Tuesday, July 31, 2012

Wap to Check that input is Consonant or Vowel.

, No comments

Source Code :

#include<stdio.h>
#include<conio.h>
   void main()
       {
       char in;
       ///input=alphabet
       printf("\n Enter An Alphabet :: ");
       scanf("%c",&in);

if(in=='a'||in=='A'||in=='e'||in=='E'||in=='i'||in=='I'|| in=='o'||in=='O'||in=='u'||in=='U')
          printf("\n %c is a Vowel",input);
          else
          printf("\n %c is a Consonant",input);
          getch();
       }

Result:

Enter An Alphabet :: A
A is a Vowel

Related Terms


what is c programming
in c programming
about c programming
about c programming language
c programming code
the c programming language
c programming language
c programming
programming
programming in c
computer programming
game programming
programming software
software programming

0 comments:

Post a Comment

Entries RSS Comments RSS

Sample Text

Pages


Copyright © Lovely Codes
Powered by Blogger
Distributed By Free Blogger Templates | Design by N.Design Studio
Blogger Theme by Lasantha - PremiumBloggerTemplates.com