003-005-008
Increment: Step Counter
Easy
Problem Description
Increment: Step Counter
Learning Objective: Accumulate values with increment operator
Simulate step counter. Increase count with ++ for each step and check goal achievement.
Input
Line 1: Steps (integer)
Output
Steps: [steps] steps
Goal achieved!
```java
Or
```java
Steps: [steps] steps
[10000-steps] steps remaining
Test Cases
※ Output examples follow programming industry standards
Input:
12000
Expected Output:
Step Count: 12000steps Target Achieved!
Input:
7500
Expected Output:
Step Count: 7500steps Remaining2500steps
Input:
10000
Expected Output:
Step Count: 10000steps Target Achieved!
❌ Some tests failed
Your Solution
Current Mode:● My Code
99
1
2
3
4
5
6
7
8
9
10
›
⌄
⌄
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Write your code here
sc.close();
}
}
0 B / 5 MB
You have 6 free executions remaining
