Computer Science, asked by rinagogoi40, 11 months ago

(b) Write a C++ program to calculate area of circle.​

Answers

Answered by parwatipanicker
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
parwatipanicker: this is pgm to find area of circle if u want to use clrscr(); u can use it otherwise it is not necessary
parwatipanicker: hope it helps
Answered by siddharthdeepak202
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