Program menghitung volume tabung dengan java
Posted by Unknown |  at 09:16
No comments
public class VolumeTabung_6924{
public static void main (String [] args) {
double d = 3, t = 7, volume;
double phi=3,14
volume=phi*d*t;
System.out.println(“======== PROGRAM MENGHITUNG VOLUME TABUNG========”);
System.out.println(“phi \t = “ + phi”);
System.out.println(“d \t= “ + d + “cm”);
System.out.println(“t \t= “+t”cm”);
System.out.println(“Volume\t=”+phix+dx+t”);
System.out.println(“\t\t= “ + volume+ “cm2”);
}
}
Tagged as: Java
About the Author
Share This Post
Related posts
0 comments: