C Program to Check Whether a Character is an Alphabet or not In this example, you will learn to check whether a character entered by the user is an alphabet or not. Example: Program to Check Alphabet
C Program to Check Whether a Number is Positive or Negative In this example, you will learn to check whether a number (entered by the user) is negative or positive. This program takes a number from the user and checks whether that number is either positive or negative or zero. Example #1: Check if…
Read more
C Program to Check Leap Year This program checks whether a year (integer) entered by the user is a 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. Example:…
Read more