program to find character is vowel of digit

#include<stdio.h>
#include<stdlib.h>
void main()
{
char ch;
printf("\nEnter any Character");
scanf("%c",&ch);
if(ch=='A' || ch=='E'|| ch=='I'|| ch=='O'|| ch=='U'|| ch=='a'|| ch=='e'|| ch=='i'|| ch=='o'|| ch=='u')
printf("\nEntered character %c is vowel",ch);
else  if(ch=='1'|| ch=='2'|| ch=='3'|| ch=='4'|| ch=='5'|| ch=='6'|| ch=='7'|| ch=='8'|| ch=='9'|| ch=='0')
printf("\nEntered character %c is a Digit",ch);
else
printf("Entered character is now a vowel and digit");
}

Comments

Popular posts from this blog

कंप्यूटर की पीढ़ियाँ (Generation of Computer)

Prime Number with break