#include<conio.

h>
#include<stdio.h>
#include<iostream.h>
main()
{
float luas_segitiga,alas,tinggi;
puts(" ------------------------ ");
puts(" TUGAS LOGIKA & ALGORITMA ");
puts(" ------------------------ ");
puts(" KELAS GA JELAS SMTR SERATUS ");
puts(" --------------------------- ");
cout<<endl;
puts(" --------------------------------------------------------- ");
puts(" MENGHITUNG LUAS SEGITIGA ");
puts(" --------------------------------------------------------- ");
cout<<" Masukan Nilai Alas = ";cin>>alas;
cout<<" Masukan Nilai Tinggi = ";cin>>tinggi;
luas_segitiga=0.5*(alas*tinggi);
cout<<" Luas Segitiga
= "<<luas_segitiga<<endl<<endl<<endl;
puts(" --------------------------------------------------------- ");
puts(" S E L E S A I ");
getche();
}

Sign up to vote on this title
UsefulNot useful