Write a c++ program to print area of circle.
Answers
Answered by
1
hola mates .....
The program output is also shown below.
* C++ Program to Compute the Area of Circle.{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;
PLZ MARK ME
The program output is also shown below.
* C++ Program to Compute the Area of Circle.{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;
PLZ MARK ME
Answered by
2
/*
* C++ Program to Compute the Area of Circle
*/
#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 " << ar
Similar questions