Volume Balok, Volume Kerucut, dan Volume limas segitiga ( C++ )

Volume Balok

#include
#include

void main ()
{
int p, l, t, v;
cout<<" Masukkan Panjang : ";
cin>>p ;
cout<<" Masukkan Lebar : ";
cin>>l;
cout<<" Masukkan Tinggi : ";
cin>>t;
v=p*l*t;
cout<<"Volume= ";
cout<}


VOLUME LIMAS SEGITIGA

#include
#include

void main ()
{
double a, ts, t, v;
cout<<" alas segitiga : ";
cin>>a ;
cout<<" tinggi segitiga : ";
cin>>ts;
cout<<" tinggi limas : ";
cin>>t;
v=0.33*(a*ts*0.5)*t;
cout<<"Volume= ";
cout<}


VOLUME KERUCUT

#include
#include

void main ()
{
double r, ts, t, v;
cout<<" jari-jari lingkaran : ";
cin>>r ;
cout<<" tinggi kerucut : ";
cin>>t;
v=0.33*(3.14*r*r)*t;
cout<<"Volume= ";
cout<}

0 komentar:

 

Usage Rights

DesignBlog BloggerTheme comes under a Creative Commons License.This template is free of charge to create a personal blog.You can make changes to the templates to suit your needs.But You must keep the footer links Intact.