Problem 44275. area of an annulus

Solution 2027631

Submitted on 19 Nov 2019 by Jean-Marie Sainthillier
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
d=1; z=2; assert(annu(d,z)<pi*1.1)

2   Pass
d=1; z=2; assert(annu(d,z)>pi*0.9)

3   Pass
d=10; z=2; assert(annu(d,z)<pi*1.1)

4   Pass
d=10; z=2; assert(annu(d,z)>pi*0.9)

5   Pass
d=100; z=20; assert(annu(d,z)<pi*110)

6   Pass
d=100; z=20; assert(annu(d,z)>pi*90)