Computer Science, asked by abdullahibellokhalif, 3 months ago

write a program in c++ to find the area of a circle

Answers

Answered by madhurg40
3

Explanation:

This C++ Program which computes area of circle. The program takes radius of the circle as an input, calculates the area of the circle and outputs it on the screen.

Here is source code of the C++ program which computes area of circle. The C++ program is successfully compiled and run on a Linux system. The program output is also shown below.

/*

* 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 " << area;

}

Answered by study2377
3

Answer:

Here is the answer buddy..... Please mark it as brainlist

Attachments:
Similar questions