[prev] 49 [next]

Exercise #7: Using scanf

Write a program that
  • asks the user for a number
  • checks that it is positive
  • applies Collatz's process (Exercise 4, Problem Set 1) to the number