- 2
How to calculate area of Triangle, Rectangle using Java? (Code please) Thankss!
2 Antworten
+ 5
Exactly as in real life:
Triangle
Area = heigth*width/2
Reactangle:
Area = heigth*width
+ 2
Let me give you hints:
1. Create Scanner class
2. take 2 number inputs.
3. Use the formulas of area
4.. Print the output
If you encounter any problems, you may ask us