VOWEL OR CONSONANT
Code :
#include<stdio.h>
int main()
{
char charr;
printf("====================================\n");
printf("\tVowel or Consonant\n");
printf("====================================\n");
printf("Enter a character: ");
scanf("%c", &charr);
if(charr == 'a' || charr == 'A' || charr == 'e' ||charr == 'E' || charr == 'I' || charr == 'i' || charr == 'O' || charr == 'o' || charr == 'U' || charr == 'u')
{
printf("\n%c is a Vowel character", charr);
}
else
{
printf("\n%c is a Consonant character\n", charr);
}
printf("------------------------------------\n");
return 0;
}
Come again Learn again !
< iCode Buzz />
No comments:
Post a Comment