Practice level 3 · Easy · 30 programs

If and else decisions

Even or odd, leap year, grades, triangles and logins.

The programs in this level

  1. Check positive or negative
  2. Check zero or non-zero
  3. Check even or odd
  4. Find greater between two numbers
  5. Find smaller between two numbers
  6. Find greatest among three numbers
  7. Find smallest among three numbers
  8. Check whether a number is divisible by 5
  9. Check whether a number is divisible by 5 and 11
  10. Check leap year
  11. Check voting eligibility
  12. Check driving license eligibility
  13. Check pass or fail
  14. Find grade using marks
  15. Check uppercase or lowercase
  16. Check alphabet or not
  17. Check digit or not
  18. Check special character or not
  19. Check vowel or consonant
  20. Check whether triangle is valid
  21. Identify triangle type
  22. Check profit or loss
  23. Check discount eligibility
  24. Check salary tax slab
  25. Check largest of four numbers
  26. Check smallest of four numbers
  27. Check whether number is between two values
  28. Check admission eligibility
  29. Check login username/password
  30. Create simple ATM menu

Unlock this lesson

Create a free account, then buy the course to open every lesson.

Everything in C Programming: BCA, MCA, BTech & O Level

  • 37 step-by-step lessons
  • 10 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account