The code below is supposed to print "Hello World" however many times the user tells it to. Does it work...
The code below is supposed to print "Hello World" however many times the user tells it to. Does it work correctly? If not, how would you fix it?
System.out.print("How many times should I print it? ");
int times = reader.nextInt();
for( int i=1; i<times; i++ ){
System.out.println("Hello World!);
}
11 years ago
5
Answer(0)
Bids(0)
other Questions(10)
- 2. Spielberg takes $100 out of his piggy bank and deposits it in his Hollywood Bank checking account
- 4) Company HTA had a free cash flow for the firm (FCFF) of $1,500,000 last year.
- Planned Change Process
- reflection essay
- Help with Math quiz plz!!!! help me please
- Homework help
- Accounting!
- Consider 4.90L of a gas at 365 mmHg and 20. â C . If the container is compressed...
- MGT 311 LATEST FINALS 100 % SCORE
- Need this by 5pm tomm