#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
float phi,r,hasil;
phi=3.14;
cout << "masukan nilai r : ";
cin >> r;
hasil =4/3*phi*(r*r*r);
cout << "hasil volumebola adalah = "<<hasil<<"\n";
system("PAUSE");
return EXIT_SUCCESS;
}
output program
0 comments:
Posting Komentar