var r:longint; begin readln(r); writeln(3.1415926*r*r:0:2); writeln(3.1415926*r*2:0:2); end.
#include <stdio.h> int main(){ int a; scanf("%d",&a); printf("%.2f\n",a*a*3.14); printf("%.2f\n",a*6.28); return 0; }
时间: 2024-10-25 07:20:08
var r:longint; begin readln(r); writeln(3.1415926*r*r:0:2); writeln(3.1415926*r*2:0:2); end.
#include <stdio.h> int main(){ int a; scanf("%d",&a); printf("%.2f\n",a*a*3.14); printf("%.2f\n",a*6.28); return 0; }