计算圆面积.c 154 B

12345678910111213
  1. #include <stdio.h>
  2. int main() {
  3. float r, area;
  4. scanf("%f", &r);
  5. area = 3.14 * r * r;
  6. printf("s=%g\n", area);
  7. return 0;
  8. }