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
snow_tiger [21]
3 years ago
14

How many line ofoutput will be displayed by the following program fragment?

Computers and Technology
1 answer:
nexus9112 [7]3 years ago
6 0

Answer:

Hi!

Let's make a quick debug of the code:

i    j   Output

0+0 =  0  

0+1 =    1

0+2 =  2

0+3 =  3

1+0 =  1 

1+1 =    2

1+2 =  3

1+3 =  4

2+0 =  2  

2+1 =    3

2+2 =  4

2+3 =  5

3+0 =  3  

3+1 =   4

3+2 =  5

3+3 =  6

4+0 =  4  

4+1 =   5

4+2 =  6

4+3 =  7

The total outputs is 20.

Explanation:

In the first iterations of the loop for the final value of the <em>i</em> is 1 and the final condition to stop of the do while is (<em>i</em> < 5) , so the iteration of for continues many times until  <em>i</em> break the condition.  

(5*4 = 20)

And after that you get 20 outputs.

I hope it's help you.

You might be interested in
Knowledge and experience help you
Zarrin [17]

Answer:

yes it can it shows u what you did wrong or what you did right

Explanation:

brainlet me please

8 0
3 years ago
If you were a developer of software, what kind of software package would you develop? why ?​
Goshia [24]

Answer:

Software that would help my grandparents in the North end much money and help stop post harvest loss due to inadequate weather information Climate change etc

Explanation:

The app willbe able to tellif a soil is suitable forCropsthrough my othertechnologiesthat willcome with app it will alsodetect the whetherpattern accuratelyprovide securityin the farmand help farmers selltheir products online

7 0
3 years ago
Let's say that you're the sole IT employee at your company. Your boss wants the company to migrate away from using the current,
EastWind [94]
IRC, Open IM Chat, and Email works
4 0
3 years ago
Can you help me with this question please ​
Flura [38]
D. half period because it is the converting of bidirectional current flow to unidirectional currency flow.
3 0
3 years ago
Future quirk ideas for bnha
ELEN [110]
Niceeeeeeeeeeee lololololol
6 0
3 years ago
Read 2 more answers
Other questions:
  • In this assignment you will write a function that will calculate parallel resistance for up to 10 parallel resistors. Call the f
    12·1 answer
  • The Internet may best be compared to a/an
    8·1 answer
  • Which is most harmful computer virus define​
    15·1 answer
  • The average and distribution of properties, like orientation or color, over a set of objects or a region in a scene are called t
    12·1 answer
  • If the user enters 26 what is output? _____________
    15·1 answer
  • Which payment type is best if you are trying to stick to a budget?
    6·1 answer
  • What are two example of ways an electronic record may be distributed to others?
    11·1 answer
  • Whay device is recommended to use to install windows 10
    13·1 answer
  • What is the difference between the dom api and the html dom api.
    8·1 answer
  • The format that you will use on your works cited page when the entry is longer than one line is__________.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!