subject

Lab 5-3 Using a for Loop

The completed program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. However, in this lab you should accomplish this using a for loop.

1. Open the source code file named NewMultiply. java using Notepad or the text editor of your choice.

2. Write a for loop that uses the loop control variable to take on the values 0 through 10.

3. In the body of the loop, multiply the value of the loop control variable by 2 and by 10.

4. Save this source code file in a directory of your choice, and then make that directory your working directory.

5. Compile the source code file NewMultiply. java .

6. Execute the program. Is the output the same as Lab 5-1?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Ryan is working on the layout of her web page. she needs to figure out where her header, navigation bar, text, and images should go. what technique can her?
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Spoons are designed to be used for: spring hammering. applying body filler. identifying high and low spots. sanding highly formed areas.
Answers: 3
question
Computers and Technology, 24.06.2019 01:00
Me if you do then you get 10 points and brainliest
Answers: 1
You know the right answer?
Lab 5-3 Using a for Loop

The completed program should print the numbers 0 through 10, a...
Questions
question
Mathematics, 03.12.2020 01:00
question
Computers and Technology, 03.12.2020 01:00
question
History, 03.12.2020 01:00
question
History, 03.12.2020 01:00
Questions on the website: 13722361