Program Mencari LuasSegitiga Menggunakan NetBeans

Posted: Mei 20, 2012 in Uncategorized

package Mencari LuasSegitiga;

 

import java.util.Scanner;

public class LuasSegitiga {

public static void main(String[] args) {

Scanner input =new Scanner(System.in);

System.out.print(“Masukan Nilai Alas :”);

double Alas =input.nextDouble();

System.out.print(“Masukan Nilai Tinggi :”);

double Tinggi =input.nextDouble();

System.out.println(“Luas Segitiga :”+(Alas * Tinggi )/2);

}

}

 

 

Semoga Bermanfaat………
Selamat Belajar……………

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 )

Gambar Twitter

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

Foto Facebook

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

Foto Google+

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

Connecting to %s