Program Mencari Volume Kerucut (Dev C++)
#include <iostream>
#include <cmath>
using namespace std;
#define PI 3.14159
int main ()
{
double Jari;
double Tinggi;
double VolKerucut;
cout << "--- Menghitung Volume Kerucut ---- " ;
cout << "\nMasukan Jari-Jari = ";
cin >> Jari;
cout << "Masukan Tingginya = ";
cin >> Tinggi;
VolKerucut = PI/3 * pow(Jari, 2) * Tinggi;
cout << "Volume Kerucut = " << VolKerucut;
cout << "\n";
return 0;
}
Hasil Compile
Semoga bermanfaat :)
0 komentar
Posting Komentar