记录
查看原帖
记录
1589848
Chimuziyu04楼主2024/11/27 11:18

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;
}

注意:“&”和小数点位数

2024/11/27 11:18
加载中...