Using a single while loop, write code that prints by 5s from 0 to 100.  Your code should also print “DONE” at the end (as shown below).   All of the output should print on the same line. Include spacing.  Assume this code will run inside of the main method. Do not define any classes or methods.   You may only use techniques and data structures that have already been covered in this class.  The output of your code should look like this: 0  5  10  15  20  25  30  35  40  45  50  55  60  65  70  75  80  85  90  95  100  DONE in java

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

Using a single while loop, write code that prints by 5s from 0 to 100.  Your code should also print “DONE” at the end (as shown below).   All of the output should print on the same line. Include spacing.  Assume this code will run inside of the main method. Do not define any classes or methods.   You may only use techniques and data structures that have already been covered in this class.  The output of your code should look like this:

0  5  10  15  20  25  30  35  40  45  50  55  60  65  70  75  80  85  90  95  100  DONE

in java

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT