Rabu, 13 April 2011

mencari volume bola & luas lingkaran menggunakan JELIO

import jeliot.io.*;

public class MyClass {
    public static void main() {
        // Your algorithm goes here.

int r;
float volume;
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);
}
}

0 komentar:

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Blogger Theme by Lasantha - Premium Blogger Templates | Affiliate Network Reviews