0 votes
159 views
in Programming by (98.9k points)
edited
Write a c++program to find area of circle?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best 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;
}

Related questions

0 votes
1 answer 95 views
0 votes
1 answer 430 views
0 votes
1 answer 1.5k views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

554 users

...