Check character vowel or consonent using conditional operators in c

This program is about checking and print the Vowel or Consonent alphabets using Conditional operators in C

Source Code

int main()
    char ch,a,e,i,o,u;
    printf("\nEnter the character:");
    ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'?printf("This character is a vowel:%c",ch):printf("This character is not a vowel:%c",ch);
    return 0;
To download raw file Click Here


Enter the character : o 
This character is a vowel:o

List of Programs

Sample Programs

Switch Case in C

Conditional Operators in C

Goto Statement in C

While Loop Example Programs

Looping Statements in C

For Loop Example Programs

Array Examples in C

One Dimensional Array

Two Dimensional Array in C

String Example Programs in C

Functions Example Programs in C

Learn All in Tamil © Designed & Developed By Tutor Joes