practice_C

More While Loops

Exercises

  1. Read five numbers and calculate their sum using a while loop.
  2. Print all factors of a number using a while loop.
  3. Print the reverse of an integer using a while loop.

Click here for explanation and solution.