#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
float volume(float r){
float Phi=3.14, vol;
vol=(float)(4*Phi*r*r*r)/3;
return(vol);
}
int main(int argc, char** argv) {
float a, hasil;
cout<<"masukkan jari-jari = "; cin>>a;
hasil=volume(a);
cout<<"volume lingkaran = "<<hasil;
return 0;
}
Raptor :
Tidak ada komentar:
Posting Komentar