Problem Solving using C Language

0 of 85 lessons complete (0%)

Conditional Statement

Practice Questions: if-else

  1. Even or Odd: Write a program to check whether a number entered by the user is even or odd.
  2. Positive, Negative, or Zero: Input a number and print whether it is positive, negative, or zero.
  3. Largest of Two Numbers: Take two numbers as input and print which one is greater.
  4. Eligibility to Vote: Input age and check if the person is eligible to vote (age ≥ 18).
  5. Divisibility Check: Input a number and check if it is divisible by both 5 and 11.
  6. Leap Year Check: Input a year and check whether it is a leap year or not.