You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Write a Program to check whether a character is vowel or not using if else statement.
#include <stdio.h>
#define A 'a'
#define E 'e'
#define I 'i'
#define O 'o'
#define U 'u'
int main()
{
char Alp;
printf("Enter character \n");
scanf("%c", &Alp);
if (Alp == A || Alp == E || Alp == I || Alp == O || Alp == U || Alp == A - 'a' + 'A' || Alp == E - 'a' + 'A' || Alp == I - 'a' + 'A' || Alp == O - 'a' + 'A' || Alp == U - 'a' + 'A')