Write a test program that computers the area of a circle

Answer:
# include<iostream>
#include<conio.h>
using namespace std;
void main ()
{
float r, area;
cout<<"Enter the radius of the circle";
cin>>r;
area = 3.14 * (r^2);
cout<<"\nArea of Circle= "<<area;
getch();
}
Explanation:
In this program, float is selected as data type for both radius and area. As, both the value can be in decimal. r is the name of radius variable. area represents the area of circle. By using cout and cin enter the value of radius. By applying formula, calculate the area and shown on output.