Write a program to check whether the given letter is vowel or consonant in C Programming

Okay, Here i am updating a another new program to  check the string :

So, Check this out and if you have any question about my blog or this post, Please feel free to comment !

Don’t be shy 🙂

Alert: here i have used  or(||) operator here ! It’s simple … :p 

#include<stdio.h>
void main(){
char ab;
printf("Please Type any string : ");
scanf("%c",&ab);
if(ab=='a' || ab=='e' || ab=='i' || ab=='o' || ab=='u'){
    printf("The Letter is Vowel Letter");
}else{
printf("The Letter is a consonant letter");
}
}
//The CoderPradip :p

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.