class kotak{
double panjang;
double lebar;
double tinggi;
}
public class cetak{
public static void main(String[]args)
{
double vol;
kotak k=new kotak();
k.panjang=4.5;
k.lebar=2.3;
k.tinggi=3;
vol=k.panjang*k.lebar*k.tinggi;
System.out.println("Volume = "+vol);
}
}
double panjang;
double lebar;
double tinggi;
}
public class cetak{
public static void main(String[]args)
{
double vol;
kotak k=new kotak();
k.panjang=4.5;
k.lebar=2.3;
k.tinggi=3;
vol=k.panjang*k.lebar*k.tinggi;
System.out.println("Volume = "+vol);
}
}
No comments:
Post a Comment
Your comments are very valuable