Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
cuboid volume
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_11 import java.util.Scanner; class Volume{ private static Scanner Sc; public static void main (String[] args){ float length,height,width; Sc=new Scanner(System.in); System.out.println("\n enter the length of a cuboid"); length=Sc.nextFloat(); System.out.println("\n enter the width of a cuboid"); width=Sc.nextFloat(); System.out.println("\n enter the height of a cuboid"); height=Sc.nextFloat(); volume=length*width*height; System.out.format("\n The Volume= %.2f", Volume); } }
run
|
edit
|
history
|
help
0
Borrowing class
Java Q-2
WM Test
Prime or Not
Scope
Java Object Graph Dumper (iterative)
1st
JAVA # Günlük Maaş Hesaplama
Prime Factors
name