## C program to find Factorial of a number

Example#1: C program to find factorial of a number Output:

## C Program to Check Whether a Number is Even or Odd

Logic: An even number is an integer that is exactly divisible by 2. Example: 0, 8, -24. An odd number is an

## C program to accept any alphabet from the user and display it in reverse case

Logic: ASCII value of ‘A’=65 and ‘a’=97. Difference between the two values is (97-65)=32. So to get ‘a’ from ‘A’ we have

## C program to check whether an alphabet is Vowel or Consonant

Logic: In English alphabet ‘A’,’E’,’I’,’O’ and ‘U’ are vowels and rest of the alphabets are consonants. This is same for lowercase characters(‘a’

## C program to find ASCII value of a Character

Logic: Originally based on the English alphabet, ASCII encodes 128 specified characters into seven-bit integers with values between 0 and 127. Ninety-five encoded characters are printable:

## C program to find Simple Interest

Logic: The mathematical formula of simple interest is, I=(P*r*t)/100 , where I=Simple interest, P=Principal, r=Rate and t=Time. We use ‘*’ operator to

## C program to print Sum of two integer numbers

Logic: In mathematics we calculate sum of two numbers using ‘+’ operator. For example, sum of 7 and 9 is (7+9)=16. In