Skip to content

Bellawareness/while-loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

While loop

Description:

In this activity you will learn how to use a while loop. You will print all the numbers from x to 6 (x being a mystery number). You can assume x is always a larger number than 6. Please follow the steps below:

Steps:

  1. Use a while loop to print the values of x to 6 decreasing in size by 1 each time.

Test:

Use the test provided.

Sample output:

If x was 10.

10
9
8
7
6

About

Let's do a while loop challenge!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages