(b) Write a C++ program to calculate area of circle.
Answers
Answered by
11
Answer:
Explanation
#include <iostream>
void main()
{
float radius, area;
cout << "Enter the radius of circle : ";
cin >> radius;
area = 3.14 * radius * radius;
cout << "Area of circle with radius "
<< radius << " is " << area;
}
parwatipanicker:
hey their
Answered by
0
Answer:
#include <iostream>
using namespace std;
int main( )
{
float radius, area;
std::cout << "Enter the radius of circle : ";
std::cin >> radius;
area = 3.14 * radius * radius;
std::cout << "Area of circle with radius "
<< radius << " is " << area;
}
Similar questions