From 0 to 4

Report a typo

Write a program that prints numbers from 0 to 4 inclusive. Each number must be on a new line.

Use the provided template for your solution.

Sample Output

0
1
2
3
4
Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}
___

Create a free account to access the full topic