- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathareaVolCuboid.java
More file actions
Latest commit
19 lines (19 loc) · 553 Bytes
/
Copy pathareaVolCuboid.java
File metadata and controls
19 lines (19 loc) · 553 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
importjava.lang.*;
importjava.util.*;
classareaVolCuboid
{
publicstaticvoidmain(Stringargs[])
{
Scannersc=newScanner(System.in);
intlength,breadth,height;
longArea,Volume;
System.out.println("Enter Values of a,b,c");
length=sc.nextInt();
breadth=sc.nextInt();
height=sc.nextInt();
Area=2*(length*breadth+breadth*height+length*height);
Volume=length*breadth*height;
System.out.println("Area" + Area);
System.out.println("Volume" + Volume);
}
}