Menghitung Luas Segitiga di Java

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package hitungluassegitiga;

/**
*
* @author Jet
*/
public class HitungLuasSegitiga {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println (“PROGRAM HITUNG LUAS SEGITIGA”);
System.out.println (“Alas = 15,5 Cm”);
System.out.println (“Tinggi = 20 Cm”+”\n”);
System.out.println (“RUMUS : 1/2 x Alas x Tinggi”);
System.out.println (“\t”+”1/2 x 15,5 x 20″+”\n”);
System.out.println (“HASIL :” + 0.5*15.5*20+”\n”);
System.out.println (“Created By : Mas ANGGA”);
}

}

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 )

Connecting to %s