Friday 21 October 2011

How to Finding Area of ​​a Circle Program C + +

How to Finding Area of ​​a Circle Program C + +



C++ is programming languages of komputer. now we will make Program of Finding area of a circle in the program c++.  lets see

#include <iostream.h>

#include <conio.h>

#define phi 3.14



void main()

{

 float jari2, luas;

 clrscr();

 cout<<"Masukkan panjang jari-jari : ";

 cin>>jari2;

 luas = phi * jari2 * jari2;

 cout<<"Luas Lingkaran adalah : "<<luas;

 getch();

}



thas is all you can compile. ok  thanks

No comments:

Post a Comment