MENGHITUNG LUAS DAN VOLUME LINGKARAN :


import jeliot.io.*;

public class MyClass {

public void cetak(){
System.out.print("coba");
}
    public static void main() {
        // Your algorithm goes here.
MyClass x = new MyClass();
x.cetak();
int r;
float volume;
float luas_lingkaran;
System.out.print("masukan r = ");
r = Input.readInt();
volume= (float)((3.14*r*r*r*3)/4);
luas_lingkaran=(float)(3.14*r*r);
   System.out.print(volume);
}
}


import jeliot.io.*;

public class MyClass {

public void cetak(){
System.out.print("coba");
}
    public static void main() {
        // Your algorithm goes here.
MyClass x = new MyClass();
x.cetak();
int r;
float volume;
float luas_lingkaran;
System.out.print("masukan r = ");
r = Input.readInt();
volume= (float)((3.14*r*r*r*3)/4);
luas_lingkaran=(float)(3.14*r*r);
System.out.print("volume");
   System.out.print(volume);
}
}

Leave reply

Back to Top