Commit 270c1f7
committed
feat: Add ReadingFromKeyBoard class to read integers and compute their sum
Add a program that:
- Uses `Scanner` to read two integers from user input
- Computes and prints their sum
- Demonstrates basic input handling and arithmetic operations in Java.1 parent 5bd6b12 commit 270c1f7
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
0 commit comments