summary refs log tree commit diff stats
path: root/java/output/ShapeAreaCalculations.typ
diff options
context:
space:
mode:
Diffstat (limited to 'java/output/ShapeAreaCalculations.typ')
-rw-r--r--java/output/ShapeAreaCalculations.typ40
1 files changed, 40 insertions, 0 deletions
diff --git a/java/output/ShapeAreaCalculations.typ b/java/output/ShapeAreaCalculations.typ
new file mode 100644
index 0000000..05f14e6
--- /dev/null
+++ b/java/output/ShapeAreaCalculations.typ
@@ -0,0 +1,40 @@
+#import "/template.typ": highlight-output
+#highlight-output[```
+$ java ShapeAreaCalculations
+Choose the shape: 
+1. Triangle
+2. Rectangle
+3. Square
+4. Circle
+Enter your choice: 1
+Enter sides: 6 8 10
+Area of a triangle: 24.0
+$ java ShapeAreaCalculations
+Choose the shape: 
+1. Triangle
+2. Rectangle
+3. Square
+4. Circle
+Enter your choice: 2
+Enter length and width: 23 14
+Area of a rectangle: 322
+$ java ShapeAreaCalculations
+Choose the shape: 
+1. Triangle
+2. Rectangle
+3. Square
+4. Circle
+Enter your choice: 3
+Enter side length: 7
+Area of a square: 49
+$ java ShapeAreaCalculations
+Choose the shape: 
+1. Triangle
+2. Rectangle
+3. Square
+4. Circle
+Enter your choice: 4
+Enter radius: 5
+Area of a square: 78.53981633974483
+```]
+