#include<iostream>
using namespace std;
class AreaFinder
{
float l, b, h;
float result;
public:
AreaFinder(float hh = 0, float ll = 0, float bb = 0)
{
l = ll;
b = bb;
h = hh;
}
void Display(int ll)
{
if(l = 0)
result = 3.14f * h * h;
else
result = l * b;
cout<< result;
}
};
int main()
{
AreaFinder objAF(10, 10, 20);
objAF.Display(0);
return 0;
}
CiNpbmNsdWRlPGlvc3RyZWFtPiAKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKY2xhc3MgQXJlYUZpbmRlcgp7CiAgICBmbG9hdCBsLCBiLCBoOyAKICAgIGZsb2F0IHJlc3VsdDsgCiAgICBwdWJsaWM6CiAgICBBcmVhRmluZGVyKGZsb2F0IGhoID0gMCwgZmxvYXQgbGwgPSAwLCBmbG9hdCBiYiA9IDApIAogICAgewogICAgICAgIGwgPSBsbDsgCiAgICAgICAgYiA9IGJiOyAKICAgICAgICBoID0gaGg7CiAgICB9CiAgICB2b2lkIERpc3BsYXkoaW50IGxsKQogICAgewogICAgICAgIGlmKGwgPSAwKQogICAgICAgICAgICByZXN1bHQgPSAzLjE0ZiAqIGggKiBoOyAKICAgICAgICBlbHNlCiAgICAgICAgICAgIHJlc3VsdCA9IGwgKiBiOyAKICAgICAgICBjb3V0PDwgcmVzdWx0OyAKICAgIH0KfTsKaW50IG1haW4oKQp7CiAgICBBcmVhRmluZGVyIG9iakFGKDEwLCAxMCwgMjApOwogICAgb2JqQUYuRGlzcGxheSgwKTsgCiAgICByZXR1cm4gMDsgCn0=