Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
02-24-2013, 04:53 PM #1
- Join Date
- Feb 2013
- Thanked 0 Times in 0 Posts
What would the code look like if I wanted to ask a user to input a number, then have a word println to the page that many times. (for the number which was entered). It should be in a function which has a while loop i'm thinking.
For Example:Input the number 5, then the word "hello" will print to the page five times
I appreciate the help all.
02-24-2013, 05:06 PM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,500 Times in 2,478 Posts
This forum is not a free coding service or homework repository. As a general rule, the people helping out in this forum don't write code for others (especially code that appears to be for homework), but try to help with fixing code that doesn't work. You may perhaps get someone to write this script for you, but you'll be far more likely to get help if you have made a substantial effort and written some code yourself. Then someone here will almost certainly help you correct/improve your work.
Quizmaster: Name an instrument which can be found hanging on the wall in many households.
Contestant: A piano.
Last edited by Philip M; 02-24-2013 at 05:08 PM.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.