#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
Langganan:
Posting Komentar (Atom)
PEMROGRAMAN WEB DINAMIS 2
MEMBUAT FORM INPUT DATA KELUARAGA SOURCODE Bagian pertama buatlah file php dengan nama Index.php dan buat lagi file tempat menyimpan isi ...
-
#include<iostream> #include <conio.h> #include <iomanip> using namespace std; int i, j, baris, kolom, m1[10][10], m2[10][1...
-
#include <iostream> #include <cstdlib> /* run this program using the console pauser or add your own getch, system("pause...
Tidak ada komentar:
Posting Komentar