Discussion Forums

New User? Please read instructions!

What is Vowel? and write a C program to find whether given character Vowel or not  

  RSS

thiyagarajan
Eminent Member
Joined: 1 month  ago
Posts: 26
27/01/2017 9:47 am  

What is Vowel? and write a C program to find whether given character Vowel or not


ReplyQuote
admin
Eminent Member
Joined: 5 years  ago
Posts: 26
10/02/2017 7:33 am  

What is Vowel?

The characters such as 'a', 'e', 'i', 'o', 'u' are called vowels.

 

C program to find whether given character is a Vowel or not:

 

#include <stdio.h>

int main()

{

     char c;

     printf("Please enter a character\n");

     scanf("%c", &c);

 

     if (c == 'a' || c == 'A' || c == 'e' || c == 'E' || c == 'i' || c == 'I' || c =='o' || c=='O' || c == 'u' || c == 'U')

         printf("\nThe entered character %c is a vowel.\n", c);

     else

         printf("\nThe entered character %c is not a vowel.\n", c);

 

     return 0;

}

 

Output:

Please enter a character

a

The entered character a is a vowel.

Edited: 2 weeks  ago

ReplyQuote
  
Working

Please Login or Register

Ask your questions or clarify your/others doubts from,

✅ Online Discussion Forums by Fresh2Refresh.com





Share this website !!!
Facebook Twitter Linkedin

Close
We Support JALLIKATTU !!!
We Support JALLIKATTU!
By Fresh2Refresh.com
Show Your Support as well. Thanks!