Tuesday 4 December 2012

C++ simple vowel program ask user to enter any word if he/she enter vowel then compiler would answer you

#include<iostream.h>
#include<conio.h>
void main()
{
char ch;
gotoxy(32,4);
cout<<"programmer umar javed";
gotoxy(27,6);
cout<<"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
gotoxy(18,8);
cout<<"please enter any character to check whether vowel or not ";
gotoxy(43,10);
cin>>ch;
gotoxy(25,12);
if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u')
cout<<"enter character = "<<ch<<" is found a Vowel"<<endl;
else
cout<<"sorry enter character = "<<ch<<" is not a vowel"<<endl;
gotoxy(27,14);
cout<<"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
getch();
}