Zaarm TechZaarm Tech

Finding the area of a circle in c++

How to find the area of a circle in c++?

1 Answer

<pre>#include&lt;iostream.h&gt; #include&lt;conio.h&gt; #define PI 3.14159 #define NEWLINE '\n' void main() { float r, area; clrscr(); cout&lt;&lt;NEWLINE&lt;&lt;"Enter the radius of circle: "; cin&gt;&gt;r; area = 2*PI*r; cout&lt;&lt;NEWLINE&lt;&lt;"Area of circle is: "&lt;&lt;area; getch(); }</pre>

saam

Post an answer