Sunday 8 April 2012

13).Program to Check Whether Input Alphabet is a Vowel or Not.

#include<conio.h>
#include<iostream.h>
void main()
{
 clrscr();
  char N;
  cout<<"Enter The Charecter: " ;
  cin>>N;


         if(N=='a'||N=='e'||N=='i'||N=='o'||N=='u')
         {
                cout<<"Charecter is Vowel.";
         }
         else
          cout<<"Charecter is Consonent.";
           getch();
}

No comments:

Post a Comment

Write a program which reads a set of integers into an integer array and then prints "YES"if all of them are same otherwise print "NO".

#include<stdio.h> int main() { int a[10],M=0,i,n; printf("enter a value for n\n"); scanf("%d",&n); fo...