write C++ program on area of circle
Answers
Answered by
1
Answer:
#include <iostream>
using namespace std;
int main() {
float radius, area_circle;
// take radius as input
cout << "Enter the radius of circle: ";
cin >> radius;
area_circle = 3.14 * radius * radius;
cout << "Area of circle: " << area_circle << endl;
return 0;
}
Explanation:
Answered by
0
Answer:
#include<iostream.h>
#include<conio.h>
voud main()
{
clrscr();
float r, area;
cout<<"\nEnter radius of the circle";
cin>>r;
area=3.14*r*r;
cout<<"\nArea of circle is= "<<area;
getch();
}
Similar questions