#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
float r, L, K, Pi;
Pi=3.14;
cout<<"====================================================="<<endl;
cout<<" Program Luas Dan Keliling Lingkaran "<<endl;
cout<<"====================================================="<<endl;
cout<<"Masukan jari-jari(r) : "; cin>>r;
L=Pi*r*r;
K=2*Pi*r;
cout<<"Luas lingkaran : "<<L<<endl;
cout<<"Keliling lingkaran : "<<K<<endl;
system("pause");
return 0;
}
Hasil Compilenya
Tidak ada komentar:
Posting Komentar