Computer Science, asked by raviraj36, 8 months ago

wap to accept the radius of a circular field and calculate its area and circumference show the result. Area=22÷7×r² Circumference=2×27÷r​

Answers

Answered by srajfaroquee
3

Note: I am using C++ programming language.

#include<iostream>

using namespace std;

int main () {

   float radius,area,circumferece ;

   cout<<"Enter the radius of the circular field: " ;

   cin>>radius ;

   circumferece = 2* 3.14159 * radius ;

   area = 3.14159 * radius * radius ;

   cout<<"\nCircumference of the circular field is " <<circumferece <<" units." <<endl;

   cout<<"\nArea of the circular field is " <<area <<" sq units."  <<endl;

return 0;

** Please mark this ans as Brainliest answer. Thank you!

}

Similar questions