PROGRAM
#include <iostream>
using namespace std;
int main()
{
int a,t;
float luas;
cout<<"===========================\n";
cout<<"menghitung luas segitiga\n";
cout<<"===========================\n";
cout<<"masukan panjang alas:";
cin>> a;
cout<<"masukan tinggi segitiga:";
cin>> t;
luas=0,5*a*t;
cout<<"luass segitiga adalah"<<luas<<endl;
return 0;
}
No comments:
Post a Comment