PROGRAM MENGHITUNG LUAS PERMUKAAN BOLA DENGAN 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) {

cout<<"Menu Menghitung Luas Permukaan Bola"<<endl;

float r, luas, phi;
phi=3.14;
cout<<"Masukan Jari-jari Bola : ";cin>>r;
luas=4*3.14*r*r;
cout<<"Luas Permukaan Bola : "<<luas;

return 0;
}

selamat mencoba :)

Comments