C语言
#include "math.h" #include "stdio.h" main() { float t; int n; scanf("%f %d",&t,&n); printf("%3.3f\n%d\n",t/n*1.0,2*n); return 0; }
注意:“&”和小数点位数