Need some help with the exercise from the book
Well...here is the exercise. This is the question from the tutorial book.
Write a function named print_out that prints all the whole numbers from 1 to N. Test the function by placing it in a program that passes a number n to it, where this number is entered from the keyboard. The print_out function should have type void; it does not return a value. The function can be called with a simple statement:
print_out(n);
Well...My question is how it is possible to do it without return a value because we need to get something from the user and the whole number should be integer. Without returning a value, how can we do that?