Question: java 1 help. need a for loop for this program, while loop has already been written. thank you output: NASA Mission Control readying for liftoff.

java 1 help. need a for loop for this program, while loop has already been written.
thank you
java 1 help. need a for loop for this program, while loop
output:
NASA Mission Control readying for liftoff.
Initializing countdown from 10...
10
9
8
7
6
5
4
3
2
1
We have liftoff!

Alter this while loop to be a for loop. Hint: Make sure that your for loop has 3 parts: 1. initialization (where do you want to start counting?) 2. test condition (when should the loop fail?) 3. update statement (are you counting up or down?) Compile and run your program and verify that you still get the following output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!