Program to find area of a circle in c++.
Write a program to find area of circle using c++.
Write c++ code to find are of circle
#include<iostream>
int main()
{
float r , area, pi;
clrscr();
cout<<"Enter the radius of the circle : ";
cin>>r;
pi = 3.14;
area = pi*r*r;
cout<<"The area of the circle is : "<<area<<endl;
getch();
return 0;
}
No comments:
Post a Comment