Mencari Luas Lingkaran dan Volum Bola ( versi Jeliot )

import jeliot.io.*;

public class MyClass {
public static void main()
{
int r;
float luas;
float volume;

System.out.print(“masukan r (jari-jari) = “);
r = Input.readInt();

System.out.print(“Luas lingkaran = “);
luas= (float)(3.14*r*r);
System.out.println(luas);
System.out.print(“Volume bola = “);
volume= (float)((3.14*r*r*r*4)/3);
System.out.print(volume);

}
}

Iklan

Posted on April 8, 2011, in Alprog. Bookmark the permalink. Tinggalkan komentar.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

w

Connecting to %s

%d blogger menyukai ini: