write a c program to find the area of circle whose diameter will be entered by the user
Answers
Answered by
2
Answer:
#include <iostream>
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