Professional Documents
Culture Documents
C Programs
C Programs
2 WAP to take year as input from user and determine whether the
year is leap year or not.
3 WAP to take 5-digit number input from user and calculate the sum
of its digits. (Hint: Use modulus operator%)
4 WAP to take 5-digit number input from user and reverse the
number.
5 WAP to take 5-digit number input from user and calculate the sum
of its digits. (Hint: Use modulus operator%)
6 WAP to take 5-digit number input from user and reverse the
number.
7 WAP to take 5-digit number input from user and reverse the
number and determine whether the original & reversed numbers
are equal or not.
8 WAP to find the factorial value of any number entered through the
keyboard.
9 WAP to find maximum between three user entered numbers.
10 WAP to check whether a user given number is negative or positive.
11 WAP to check whether a given number is even or odd.
12 WAP to check whether a year is leap year or not.
13 WAP to check whether a given alphabet is vowel or consonant.
14 WAP to check whether a given character is upper case or lower
case.
15 Write a C program to input day number and print week day.
16 Write a C program to input month number and print number of
days in that month.
17 Write a C program to calculate profit or loss.
Write a C program to print all natural numbers from 1 to n. (Using
while loop)