i thought i've solved this problem, but getting WA when i submit this
anyone can help me?

include

include

define pi 3.14159265

using namespace std;
int main()
{
double n,f,l,r;
cin>>n;
while (n!=0)
{
if (1<=n<=100)
{
l = (0.5*n*n)/pi;

                cout << setprecision(2) << l << endl;
                cin>>n;
            }
    }

}

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 15 8d

Want to read more? Browse other topics in C and C++ or view latest topics.