/* Note:Your choice is C IDE */
#include "stdio.h"
#include "string.h"
#include "windows.h"
void zhezhi(float t)
{
float h=t;
int count=0;
while(h<=8848.43)
{
h*=2;
count++;
printf("%.3f\t",h);
if(count%5==0)
{
printf("\n");
}
}
printf("\n初始为%fm的纸张,需要%d次对折后高度为%f超过珠穆朗玛峰的8848.34米",t,count,h);
}
void main()
{
float t;
printf("请输入初始纸张厚度:");
scanf("%f",&t);
zhezhi(t);
}