Re: Write a print function
Quote:
Originally Posted by
jacksparrow
Hi
i did write a print function which the user put a number and then it will print out till that number
No you didn't. You wrote a function that prints one number and then returns.
All you did was call this function n times. That does not satisfy the requirement of your assignment:
Quote:
write a function named print_out that print all the whole numbers from 1 to n.
The entire function must do this work.
Regards,
Paul McKenzie
Re: Write a print function
[ Moved thread ]
@jacksparrow
Please, post console programming problems (like this one) in C++ (Non Visual C++ Issues) forum.