C Programming - Assignment 2
*WAP – Write a Program
1. WAP to check given number (from user) is even or odd.
2. WAP to find maximum between three numbers using nested if.
3. WAP to check given year is leap year or not.
4. WAP to read the subject mark and assign grade according to the following conditions.
If 90 > marks <= 100 – AA
If 80 > marks <= 90 – AB
If 65 > marks <= 80 – BB
If 50 > marks <= 65 – CC
If 35 > marks <= 50 – CD
If marks <= 35 – FF
5. WAP to check that the given no is divisible by 6 but not divisible by 4, number lies in
between 1 to 100.
6. WAP that use switch case to print the day of the week as Monday to Sunday according to
the number in between 1 to 7 given by user.
7. WAP to make a basic calculator using switch case (Addition, Subtraction, Multiplication,
Division, and 𝑥 𝑦 operations should be handle by the calculator).