006-003-005
While Loop: Countdown
Easy
Problem Description
while loop: Countdown
In this problem, you will create a program that uses a while loop to count down from a start value to 0, printing each integer one per line, and displays the result to standard output.
Learning Objective: Understand repetitive processing using while loops
Create a program that inputs a start value and counts down from that value to 0.
Input
Line 1: Start value (positive integer)
Output
[start]
[start-1]
...
1
0
```java
## Example
Input:
```java
3
```java
Output:
```java
3
2
1
0
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up