Commit 56e3e97
committed
feat: Add Expression3 class to calculate surface area and volume of a cuboid
Add a program that:
- Takes length, breadth, and height as input from the user
- Calculates the total surface area using the formula: 2(lb + lh + bh)
- Computes the volume using the formula: l × b × h
- Demonstrates integer input handling and geometric formula application in Java.1 parent 8a198ff commit 56e3e97
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
0 commit comments