SPOJ - Build a Fence Problem Solution
Solution :-
using namespace std;
#define PI 3.141592654
int main()
{
double area,n;
while(1)
{
cin>>n;
if(!n)
break;
area=(n*n)/(2*PI);
cout<<fixed<<setprecision(2)<<area<<endl;
}
return 0;
}
Here, you may find the solutions to famous problems of various coding platforms like SPOJ || HACKEREARTH etc. Please leave a comment in case you need solution or editorial to any problem. Get Solutions || Editorials of Famous DP problems. Happy Coding :)
No comments:
Post a Comment