Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
10:6:2
SUBMITTED BY:
Guest
DATE:
Dec. 5, 2013, 3:14 p.m.
FORMAT:
C++
SIZE:
411 Bytes
Raw
Download
Tweet
HITS:
681
Go to comments
Report
#include
<iostream>
#include
<cmath>
#include
<cstdio>
using
namespace
std
;
#define Pi acos(-1)
int
main
()
{
int
cas
;
double
L
,
R
,
rarea
,
larea
;
cin
>>
cas
;
while
(
cas
--
)
{
cin
>>
L
;
R
=
L
/
5
;
rarea
=
Pi
*
R
*
R
;
larea
=
((((
6
*
L
)
/
10
)
*
L
)
-
rarea
);
printf
(
"%.2lf %.2lf
\n
"
,
rarea
,
larea
);
}
return
0
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus