Menghitung Volume Limas Dengan Code c++
Berbagi itu indah sob :)
Sebelumnya sudah saya share
Sekarang saya masih akan share artikel yg nggak jauh berbeda, yaitu Menghitung Volume Limas Dengan Code c++.
silahkan dicoba :)
#include <iostream.h>
main ()
{
float l,t,volume;
cout<<"Menghitung Volume Limas\n";
cout<<"Isikan Nilai Luas Alas =";
cin>>l;
cout<<"Isikan Nilai Tinggi =";
cin>>t;
volume = (l*t)/3;
cout<<"Volume Limas adalah "<<volume<<" cm^3\n";
}
No comments:
Post a Comment