#include <iostream>
#include <stdlib.h>
#include <unistd.h>
using namespace std;
int main()
{ int p,t1,t,a=1/(float)2,vol,luas;
//vol=1/2xpxlxt
cout<<"masukkan panjang alas segitiga :";cin>>p;
cout<<"masukkan tinggi alas segitiga :";cin>>t;
cout<<"masukkan tinggi prisma :";cin>>t1;
vol*=p;
vol*=t;
vol*=a;
vol*=t1;
cout<<"volume :"<<vol<<endl;
p*=t1;
p*=a;
p*=2;
t1*=t;
t1*=3;
t1+=p;
cout<<"luas permukaan :"<<t1<<endl;
}
#include <stdlib.h>
#include <unistd.h>
using namespace std;
int main()
{ int p,t1,t,a=1/(float)2,vol,luas;
//vol=1/2xpxlxt
cout<<"masukkan panjang alas segitiga :";cin>>p;
cout<<"masukkan tinggi alas segitiga :";cin>>t;
cout<<"masukkan tinggi prisma :";cin>>t1;
vol*=p;
vol*=t;
vol*=a;
vol*=t1;
cout<<"volume :"<<vol<<endl;
p*=t1;
p*=a;
p*=2;
t1*=t;
t1*=3;
t1+=p;
cout<<"luas permukaan :"<<t1<<endl;
}