[SOLVED] SOLVED: counting with a While Loop

10.99 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

Rate this product

Counting with a While Loop Type in the following code, and get it to compile. This assignment shows you how we can abuse a while loop to make something repeat an exact number of times.Assignments turned in without these things will receive no credit. 1.What does n++ do? Remove it and see what happens. (Then put it back.) 2.Change the code so that the loop repeats ten times instead of five. 3.See if you can change the code so that the message still prints ten times, but the numbers in front count by tens, like so:

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.