Program Menghitung Luas Trapesium

Posted by Budi Arieyanto | Posted in | Posted on 04.49

#include<iostream.h>
#include<conio.h>

void main()
{
 float Cotg,AL,AT,H,S,LT;
 clrscr();

 cout<<"MENGHITUNG LUAS TRAPESIUM"<<endl;

 AL=5.0;
 H=7.0;
 S=45;

 LT=0.5*H*(AL+AT);
 AT=AL-2*H*Cotg*S;

 cout<<"\n\nNilai LT = "<<LT<<endl;
 cout<<"\n\nNilai AT = "<<AT<<endl;
 getche();
 }

Comments (0)

Posting Komentar