input /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package latihan1;
import java.util.Scanner;
/**
*
* @author toshiba
*/
public class Latihan1 {
public static void main(String[] args) {
System.out.println("Rumus Luas Bola (4*phi*r*r)");
Scanner input=new Scanner(System.in);
System.out.println("phi");
double phi=input.nextDouble();
System.out.println("masukan r");
double r=input.nextDouble();
double hasil=(4*phi*r*r);
System.out.println("maka luas bola tersebut adalah"+hasil);
}
/**
* @param args the command line arguments
*/
}
By: Heri Heryadi
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package latihan1;
import java.util.Scanner;
/**
*
* @author toshiba
*/
public class Latihan1 {
public static void main(String[] args) {
System.out.println("Rumus Luas Bola (4*phi*r*r)");
Scanner input=new Scanner(System.in);
System.out.println("phi");
double phi=input.nextDouble();
System.out.println("masukan r");
double r=input.nextDouble();
double hasil=(4*phi*r*r);
System.out.println("maka luas bola tersebut adalah"+hasil);
}
/**
* @param args the command line arguments
*/
}
By: Heri Heryadi
Posting Komentar untuk "Cara Membuat Luas Bola Dalam HTML"