-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLab.java
More file actions
27 lines (25 loc) · 861 Bytes
/
Lab.java
File metadata and controls
27 lines (25 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.util.Scanner;
import org.*;
/**
* Lab
*/
public class Lab {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter 1 to Calculate Area and Perimeter of Circle");
System.out.println("Enter 2 to Calculate Area and Perimeter of Triangle");
System.out.println("Enter 3 to Calculate Area and Perimeter of Square");
//System.out.println("Enter 4 to Calculate Area and Perimeter of Circle");
int ch = scanner.nextInt();
switch (ch) {
case 1:
System.out.println("Enter the Radius of the circle :");
int r = scanner.nextInt();
Circle circle = new Circle();
circle.Area(r)
break;
default:
break;
}
}
}