menu bar

Saturday, 9 April 2016

program untuk mencari isi bola bila diketahui jari-jari bola


dalam c++


#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
int r;
float phi=3.14;
float hasil;
cout<<"Masukan jari-jari : ";cin>>r;
hasil=4*phi*r*r*r/3;
cout<<"Volume Bola : "<<hasil;
return 0;
}


dalam reptor




No comments:

Post a Comment