1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zhuklara [117]
4 years ago
9

Fill in the blanks to print "in a loop" 7 times, using the while loop.int x = 1;while (x <= ) {System.out.println("in a loop"

);++;}
Computers and Technology
1 answer:
Pachacha [2.7K]4 years ago
5 0

Answer:

int x = 1;

while (x <= 7) {

 System.out.println("in a loop");

 ++x;

}

this should work in java

Explanation:

the ++x increments x, so it works lke this:

1. x is 1, prints the thing, then increments x to 2

2. x is 2, prints the thing, then increments x to 3

3. x is 3, prints the thing, then increments x to 4

4. x is 4, prints the thing, then increments x to 5

5. x is 5, prints the thing, then increments x to 6

6. x is 6, prints the thing, then increments x to 7

7. x is 7, prints the thing, then increments x to 8

8. loop stops because 8 is not <= 7

hope this helps :D

btw this could also be done like this using for loop:

for (int x = 1; x <= 7; ++x) {

   System.out.println("in a loop");

}

You might be interested in
Based on the condition.
e-lub [12.9K]

Answer:

A subroutine is a block of statements that carries out one or more tasks. ... they share all variables with the rest of the main program. ... Once you have defined a function in your program, you may use it in any appropriate expression, such as: ... Thus, functions can- not change the values of the arguments passed to them.

Explanation:

5 0
3 years ago
PLEASE HELP I'M TAKING A QUIZ AND I HAVE 5 MINUTES LEFT
larisa [96]

Answer:

pp popo

Explanation:

6 0
3 years ago
Read 2 more answers
What Intel socket recommends the use of a liquid cooling system?
Marizza181 [45]
The Intel socket that Intel recommends you use a liquid-cooling system on is the LGA2011.
5 0
3 years ago
4.11 lesson practice <br> Need help
NNADVOKAT [17]

Answer:

Computer modeling.

Explanation:

Computational modeling is characterized by the use of computers to represent a real world situation, that is, it is the use of mathematical models to assist in solving problems in multidisciplinary areas essential for the development of science and technology. Through computational modeling it is possible to adjust several study variables and achieve greater probabilities of reaching an effective result more quickly and at a lower cost.

Through this system it is possible to solve complex problems such as scientific research, product development, analysis and predictions about certain phenomena, development of technology applied to health, etc.

4 0
3 years ago
Read 2 more answers
How much should I borrow on a direct loan
olga_2 [115]
I recommend between $5,500 and $12,500 each year.
7 0
3 years ago
Other questions:
  • A(n) ____ is a collection of one or more program statements combined to perform some action
    14·1 answer
  • Switches operate on what layer of the OSI Model
    11·1 answer
  • The __________ vulnerability assessment is a process designed to find and document selected vulnerabilities that are likely to b
    15·1 answer
  • __________ was awarded the Nobel Prize in physics forhis work on the photoelectric effect.
    13·1 answer
  • You are part of the team to implement new software at XYZ Inc. The employees at XYZ Inc. trust the results of the old software p
    15·1 answer
  • The keyboard usually has six rows of keys. Which of the following is not one of the key group categories?
    7·2 answers
  • Analytical CRM systems are the input for operational CRM systems.<br><br> True<br><br> False
    11·1 answer
  • HURRY
    8·1 answer
  • From which Menu option you can change page setup in MS Word​
    8·1 answer
  • Do you guys answer questions about cyber security?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!