Jumat, 30 Desember 2011

tugas algoritma modul 5

import java.util.Scanner;

public class Modul4

{
public static void main(String args[])

{
Scanner masuk = new Scanner(System.in);

float phi = 3.14f;
int r,t;

float volume;

System.out.println("Jari - jari tabung: ");

r = masuk.nextInt();

System.out.println("tinggi tabung");
t = masuk.nextInt();
volume= phi*r*r*t;

System.out.println("volume: " + volume);

}
}

0 komentar:

Posting Komentar

Statistik

Translate

Blog Archive