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:
- Use a while loop to print the values of x to 6 decreasing in size by 1 each time.
Use the test provided.
If x was 10.
10
9
8
7
6