# Write a program to calculate the area of the circle, taking the value of the radius from the user.

# Write a program to calculate the area of the circle, taking the value of the radius from the user.

## Code:

**#include<iostream>**

**#include<conio.h>**

**#include<math.h>**

**using namespace std;**

**void main()**

**{**

** float rad,area;**

** cout<<“Enter the value of Radius: \n\n”;**

** cin>>rad;**

** area= 2*3.142*rad;**

** cout<<“\nArea of the circle is: “<<area;**

** getch();**

**}**

#include<iostream> #include<conio.h> #include<math.h> using namespace std; void main() { float rad,area; cout<<"Enter the value of Radius: \n\n"; cin>>rad; area= 2*3.142*rad; cout<<"\nArea of the circle is: "<<area; getch(); }