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
Artist 52 [7]
3 years ago
5

What is the output of the following code: ​ for (loop = 1; loop <3; ++loop) System.out.print(1); for (loop2 = 1; loop2<3;

++loop2) System.out.print(2); ​
Computers and Technology
1 answer:
Mama L [17]3 years ago
7 0

Answer:

The output of the given code as follows:

<u>Output: </u>

1122

Explanation:

In the given java code the two for loop is defined, which can be described as follows:

  • In the first loop, a"loop" variable is used, which starts from 1 and ends when the value of loop is less than 3, inside the loop a print function is used, that print value 1.
  • In the next step, another for loop is declared, inside the loop a variable "loop2" variable is used, that's working is the same as the above loop, but in this loop, it will print a value, that is 2.
You might be interested in
You know that a candy bar costs sixty cents today. You also know the CPI for 1962 and the CPI for today. Which of the following
Elan Coil [88]

Answer:

d. sixty cents x (1962 CPI / today's CPI)

Explanation:

Dividing sixty cents with today's CPI and multiplying with 1962 's CPI would give the cost in 1962

7 0
4 years ago
What is the encoding technique called that is used to store negative numbers in the computer's memory
Anna007 [38]

Answer:

The following “ encoding techniques “ can be used to “ store negative numbers in a computers memory: “ “ Signed magnitude representation (SMR).

Explanation:

hope it helps.!!

6 0
2 years ago
The =COUNT function calculates what value?
kirill [66]

Answer:

adds up the values in the range of cells provided

Explanation:

3 0
3 years ago
Read 2 more answers
Corinne is taking a chemistry class in college. A lab assignment asks students to track the melting point of ten different subst
Dmitrij [34]

Answer:

a spreadsheet

Explanation:

The data is of statistical type and is experimentally based. And hence, the spreadsheet is the best kind of software that can be used to register the record. And we can save 10 such experient results with the same format of tables on 10 different worksheets, and if we want we can adjust the readings of the 10 similar experiments at one time. And hence, we can quite effectively record as well as analyze this data on the spreadsheet. Hence, the spreadsheet is the correct option.

4 0
3 years ago
(true or false) fortnite is the best?
GarryVolchara [31]

Answer:

FALSE ZzZzZzZz

Explanation:

Cus it is PERIOT

7 0
3 years ago
Read 2 more answers
Other questions:
  • The email application used by Jim’s office is sending emails with viruses attached to them to user’s computers. What step should
    13·2 answers
  • The appropriate length for an e-mail is about half the amount of text that will fit on an 8 1/2' by 11' page.
    11·2 answers
  • What is wrong with this line of python code
    9·1 answer
  • Program for bit stuffing...?
    9·1 answer
  • Zac works in the robotics industry. He assists in assembling robots. He also carries out regular inspections at industries that
    10·2 answers
  • Jason is driving 1,050 miles from Miami, Florida, to New
    15·1 answer
  • Drag each tile to the correct box.
    7·2 answers
  • Who was the first person to develop http the language in which servers and browsers communicate
    11·1 answer
  • Do you want my hero academia?<br><br><br><br><br><br> if so, who's your favorite character :&gt;
    5·2 answers
  • How does beamforming improve network service?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!