24. Luas dan Keliling Jajar Genjang
#include <iostream>
#include <conio.h>
using namespace std;
int main ()
{
float a,t,s,luas,keliling;
cout<<"==========================================="<<endl;
cout<<"Menghitung Luas dan Keliling Jajar Genjang"<<endl;
cout<<"==========================================="<<endl;
cout<<"Masukkan nilai alas =";
cin>>a;
cout<<"Masukkan nilai tinggi =";
cin>>t;
cout<<"Masukkan nilai sisi miring =";
cin>>s;
luas=a*t;
cout<<"Luas ="<<luas<<endl;
keliling=2*a+2*s;
cout<<"Keliling ="<<keliling<<endl;
cout<<"==========================================="<<endl;
cout<<"By:Punaji Haruman"<<endl;
getch ();
}
#include <iostream>
#include <conio.h>
using namespace std;
int main ()
{
float a,t,s,luas,keliling;
cout<<"==========================================="<<endl;
cout<<"Menghitung Luas dan Keliling Jajar Genjang"<<endl;
cout<<"==========================================="<<endl;
cout<<"Masukkan nilai alas =";
cin>>a;
cout<<"Masukkan nilai tinggi =";
cin>>t;
cout<<"Masukkan nilai sisi miring =";
cin>>s;
luas=a*t;
cout<<"Luas ="<<luas<<endl;
keliling=2*a+2*s;
cout<<"Keliling ="<<keliling<<endl;
cout<<"==========================================="<<endl;
cout<<"By:Punaji Haruman"<<endl;
getch ();
}
Komentar
Posting Komentar