// MENGHITUNG LUAS SEGITIGA
import java.io.*;
public class Luas
{
public static void main(String args[])
{
int A=5,t=2,f=2,L;
{
System.out.println("Menghitung Luas Segitiga");
System.out.println("========================");
System.out.println(" ");
System.out.println("Diketahui Panjang Alas = "+A);
System.out.println("Diketahui Tinggi = "+t);
L = A * t / f;
System.out.println("Jadi Hasil A*t/f = ?");
System.out.println("Hitung : "+A+" * "+t+" / "+f+" = "+L);
} }}
Categories:
java