为啥我这个可以在vs和dev运行不能在这里运行
查看原帖
为啥我这个可以在vs和dev运行不能在这里运行
1581659
yangyiqun111楼主2024/11/28 19:57
#include <stdio.h>
int show(float s)
{
	float j=2.0;
	int cut = 1;
	while (j < s)
	{
		j += float(j * 0.98);
		cut++;
	}
	return cut;
}

void print_show()
{
	float s;
	scanf("%f", &s);
	printf("%d",show(s));

}
int main()
{
	print_show();
	return 0;
}
2024/11/28 19:57
加载中...