#include <iostream.h>
#include <conio.h>
int main()
{
float a,b,c,t;
cout<<"Keliling & Luas Trapesium Sama Kaki";
cout<<"\n\nsisi atas = ";cin>>a;
cout<<"sisi bawah = ";cin>>b;
cout<<"sisi miring = ";cin>>c;
cout<<"tinggi = ";cin>>t;
cout<<"\nKeliling Trapesium Sama Kaki = "<<a+b+(2*c)<<endl;
cout<<"Luas Trapesium Sama Kaki = "<<2*(a+b)*t<<endl;
cout<<"\nKeliling & Luas Trapesium Sembarang";
cout<<"\n\nsisi atas = ";cin>>a;
cout<<"sisi bawah = ";cin>>b;
cout<<"sisi miring = ";cin>>c;
cout<<"tinggi = ";cin>>t;
cout<<"\nKeliling Trapesium Sembarang = "<<a+b+c+t<<endl;
cout<<"Luas Trapesium Sembarang = "<<2*(a+b)*t<<endl;
getch();
}
Tidak ada komentar:
Posting Komentar