L2-1 Exercises

Complete the following exercises on your own:

  1. A C program to check if a number is even or odd
  2. A C program to check whether or not an inputted number is negative, zero, or positive.
  3. A C program to check whether an inputted character is a vowel or a consonant
  4. A C program to find the largest number among three numbers that the user inputs
  5. A C program to find the quadratic root of a polynomial equation that a user enters
  6. A C program to check whether or not an entered year is a leap year
  7. A C program to check whether an inputted character is in the alphabet or not.

Check your answers using these links after completing your exercises:

  1. https://www.programiz.com/c-programming/examples/even-odd
  2. https://www.programiz.com/c-programming/examples/negative-positive-zero
  3. https://www.programiz.com/c-programming/examples/vowel-consonant
  4. https://www.programiz.com/c-programming/examples/largest-number-three
  5. https://www.programiz.com/c-programming/examples/quadratic-roots
  6. https://www.programiz.com/c-programming/examples/leap-year
  7. https://www.programiz.com/c-programming/examples/alphabet