Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. int main() {
  2.     long double innerRadius = 0, outerRadius = 0;
  3.     long double width = 0, square = 0;
  4.     long double pi = 3.14159265358979323846L;
  5.     scanf("%Lf %Lf", &innerRadius, &outerRadius);
  6.     square = pi * 100L * (outerRadius * outerRadius - innerRadius * innerRadius);
  7.     width = outerRadius - innerRadius;
  8.     printf("%.0Lf %.2Lf", width, square);
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement