Solutions of Circle
Select solution language
Write solution here.
We can define pi as 3.14.
Radius: r.
Perimeter Formula: 2 * pi * r.
Area formula: pi * r * r.
Example Code (C++)
cpp#βclude<bitsstdc++.h>#defβeΟ3.14doubβ€r;usingnamespacestd;β«maβ(){cββ©r;coutβ¨fixedβ¨setβΊision(3)β¨2β
Οβ
rβ¨ β¨Οβ
rβ
rβ¨endl;return0;}