Selasa, 17 April 2012

Program C++ menghitung sebuah volume bola


#include <iostream>
#include <string>

using namespace std;
int main()
{
   string raptor_prompt_variable_zzyz;
   int r;
   int phi;
   int v;

   raptor_prompt_variable_zzyz ="masukkan r:";
   cout << raptor_prompt_variable_zzyz << endl;
   cin >> r;
   phi =3.14;
   v =(4/3)*phi*r*r*r;
   cout << "volume bola:"<<v << endl;
   system("PAUSE");
   return EXIT_SUCCESS;
}
 

Copyright © YunusBasuki® Design by YunusBasuki

HOME