This program is about checking and print the Vowel or Consonent alphabets using Conditional operators in C
#include<stdio.h> int main() { char ch,a,e,i,o,u; printf("\nEnter the character:"); scanf("%c",&ch); 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
Learn All in Tamil © Designed & Developed By Tutor Joes