practice_C

While Loops

Exercises

  1. Print the numbers from 1 to n using a while loop.
  2. Print the odd numbers from 1 to n using a while loop.
  3. Print the multiplication table of a number using a while loop.

Click here for explanation and solution.