How to write a C Program To Check The Given Value Is Vowel in C Programming Language ?
Solution For C Program :
#include<stdio.h>
void main()
{
int flag = 0;
int ceckvowel(void);
printf("\nIn Main Control.\n Check Vowel.\n");
do
{
if(checkvowel() == 1)
{
printf("\nThe Given Character is a Vowel.");
flag = 1;
}
else
{
printf("\nTry Again...");
flag = 0;
}
}while(flag == 0);
}
int checkvowel(void)
{
char ch;
printf("\nEnter Any Character : ");
ch = getche();
if(ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' || ch == 'A' || ch == 'E' ||
ch == 'I' || ch =='O' || ch =='U')
return 1;
else
return 0;
}
You may also learn these C Program/Code :
C Program To Swap Two Numbers Without Using Third Variable
Learn More :
Check
- CHECKING LEAP YEAR USING C PROGRAM.
- Check given number is prime number or not using c program.
- Write a c program to check given string is palindrome number or not.
- C program to Check While packet(s) hasn't been acked
- C Program to Check Prime Use Loop And Recursive
- Given a numerical value, check if at least one of the elements of the vector is equal to the numerical value if so, say where in the negative case, say that there is no.
- C Program To Find The Length, Reverse Of A String And To Check It Is Palindrome or Not
- C Function to Check Vowel
- C Program To Check Leap Year
- C Program To Check If It Is A Palindrome Numbers Or Not
- C Program to Check if a number is in an array[1000]
- Armstrong Number Checker in C
- C Program to Check Given String is Palindrome or Not
- C Program to Check Whether Number Is Perfect Or Not
- C Program To Alarm Check
- C Program To Read A Parenthesised Infix Expression From The User And Check Whether It Is Well Parenthesised Or Not
- Input a Number and Check if it's Palindrome or not C Program
- Input Number and Check if it's Armstrong C Program
- Input Number and Check if it's Even or Odd C Program
Given Value