Write one additional program which itself contains two


Write one additional program which itself contains two loops. You will have to decide which loop type to use and how to write each one. Both loops will have a loop body that consists of a computation and an output.

  • Loop 1: sum up all of the values from 1 to 10, outputting the sum as you go. For instance, it will output 1, 3 (1+2), 6 (1+2+3), 10 (1+2+3+4), etc (on separate lines).
  • Loop 2: sum up all of the values starting at 1 and going until the sum is greater than 100, again outputting results as you go.

You will have to decide what type of loops to use and how to write each, and what other variables and instructions are needed in your program.

Solution Preview :

Prepared by a verified Expert
Business Management: Write one additional program which itself contains two
Reference No:- TGS02746281

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)