Program Menghitung Luas Dan Keliling Lingkaran
Posted by Budi Arieyanto | Posted in Borlant C++ | Posted on 04.50
#include<iostream.h>
#include<conio.h>
void main()
{
const float phi=3.141592;
float R,D,L,K;
clrscr();
cout<<"MENGHITUNG LUAS DAN KELILING LINGKARAN"<<endl;
R=7.0;
D=2*R;
L=phi*R*R;
K=phi*D;
cout<<"\n\nNilai D = "<<D<<endl;
cout<<"Nilai L = "<<L<<endl;
cout<<"Nilai K = "<<K<<endl;
getche();
}


Comments (0)
Posting Komentar