|
-
February 17th, 2012, 05:45 AM
#2
Re: Write a print function
 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:
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|