Commit 92b0a05
committed
feat: Add Sum class to calculate the sum of two floating-point numbers
Add a program that:
- Prompts the user to input two float values
- Computes and prints their sum
- Demonstrates use of `Scanner` for input and basic arithmetic with float types in Java.1 parent 270c1f7 commit 92b0a05
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments