//Write a c program to check the character is ovwel or consonent using if and else :

If and else :

Experiment 5 :

//Write a c program to check the character is ovwel or consonent using if and else :




For Syntax click here: syntax

C program code....

#include<stdio.h>

int main()

{

char ch;

printf(" enter the character is --",ch);

scanf("%s",&ch);

if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U')

{

printf("the character is ovwel");

}

else

{

printf(" the character is consonent ");

}

}


For first example 1

https://kodewithgy.blogspot.com/2024/09/c-program-if-and-else-questions-and.html


Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post