Category Archives: C Programs

C Program to Check Vowel or Consonant

In this article, you will learn to check whether an alphabet entered by the user is a vowel or a consonant. English alphabets a, e, i, o and u both lowercase and uppercase are known as vowels. Alphabets other than vowels are known as consonants. We check whether given character matches any of the 5 vowels. If yes,… Read More »

C Program to check Leap Year (2 ways)

This program checks whether the input year is leap year or not. A leap year is exactly divisible by 4 except for century years (years ending with 00). The century year is a leap year only if it is perfectly divisible by 400. Leap Year : If a year is divisible by 4, 100 and 400 then it… Read More »