#include<stdio.h>
float fun(float h,int n)
{
int i;
for(i=0;i<n;i++)
{h=h/2;}
return h;
}
int main()
{float high;int t;
scanf("%f%d",&high,&t);
printf(“high=%f\n”,fun(high,t));
return 0;
}
second
最新推荐文章于 2022-12-29 14:48:57 发布
#include<stdio.h>
float fun(float h,int n)
{
int i;
for(i=0;i<n;i++)
{h=h/2;}
return h;
}
int main()
{float high;int t;
scanf("%f%d",&high,&t);
printf(“high=%f\n”,fun(high,t));
return 0;
}