1. Write a program to check whether a given number is positive or negative.
2. Write a program to check if a number is even or odd.
3. Write a program to find the largest of two numbers.
4. Write a program to find the largest of three numbers.
5. Write a program to check whether a given year is a leap year or not.
6. Write a program to check whether a given character is a vowel or consonant.
7. Write a program to check if a person is eligible to vote (age ≥ 18).
8. Write a program to check whether a student has passed or failed (pass marks = 40).
9. Write a program to display the grade of a student based on marks:
o 90–100: A
o 80–89: B
o 70–79: C
o 60–69: D
o Below 60: F
10. Write a program to check whether a given number is a single-digit, two-digit, or
three-digit number.
11. Write a program to check if a number is divisible by 5.
12. Write a program to check if a number is divisible by both 3 and 5.
13. Write a program to check whether the entered password is correct or incorrect.
14. Write a program to check whether a character entered is uppercase, lowercase, or a
digit.
15. Write a program to check whether a triangle is equilateral, isosceles, or scalene
based on its sides.
16. Write a program to check whether a person is a child (age < 13), teenager (13–19), or
adult (20+).
17. Write a program to check if a number is positive, negative, or zero.
18. Write a program to determine the admission eligibility:
If marks ≥ 85 → Eligible for admission
If 70–84 → Eligible for waiting list
If < 70 → Not eligible
19. Write a program to check whether the given day (number 1–7) corresponds to a
weekday or weekend.
20. Write a program to calculate electricity bill discount:
If units ≤ 100 → No discount
If 101–200 → 5% discount
If > 200 → 10% discount