Thursday, 16 March 2017

Geeksforgeeks Solution For " Vowel or Not "

GeeksforGeeks Solution For School Domain .Below You Can Find The Solution Of Basic ,Easy ,Medium ,Hard .You Can Also Direct Submit Your Solution to Geeksforgeeks Same Problem .You Need to login then you can submit you answers 

Problem :- Write a program to check whether a character is vowel or not.

Submit Your Solution :- Click Here 


Solution :- 

#include <iostream>
#include <math.h>
using namespace std;
int main() 

{
int t1;
cin>>t1;
while(t1--)
{
   char ch;
   cin>>ch;
   if (ch == 'a' || ch == 'A' || ch == 'e' || ch == 'E' || ch == 'i' || ch == 'I' || ch =='o' || ch=='O' || ch == 'u' || ch == 'U')
   cout<<"YES"<<endl;
   else
   cout<<"NO"<<endl;
   
}

return 0;
}

Output:-

Geeksforgeeks Solution For " Vowel or Not "

No comments:
Write comments

Recommended Posts × +