import java.io.*;
public class Luas Segitiga
{
public static void main(String[]args) throws IOException
{
int a, t;
float d;
String AStr,TStr;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Alas : ");
AStr = br.readLine();
a = Integer.parseInt(AStr);
System.out.print("Tinggi : ");
TStr = br.readLine();
t = Integer.parseInt(TStr);
d = a / 2 * t;
System.out.println("Luas Segitiga = " + d );
}
}
Tidak ada komentar:
Posting Komentar