C++ PROGRAM TO FIND THE AREA OF CIRCLE
Sample Test Case : Enter radius of circle : 5
Sample Test Case : Area of circle : 78.5
CODE
#include <iostream.h>
using namespace std;
int main()
{
float r,area;
cout<<"Enter Radius of circle :";
cin>>r;
area=3.14*r*r;
cout<<"Area of circle :"<<area;
return 0;
}

No comments:
Post a Comment