热门

最新

红包

立Flag

投票

同城

我的

发布
qq_68908165
炫酷狂拽噼里啪啦暴龙战士
4 年前
trueqq_68908165

输入身高体重,求体脂率
源代码如下

#include <stdio.h>
int main()

{
float height,weight,index;
printf("请输入身高(m),体重(kg):\n");
scanf("%f%f",&height,&weight);
index=weight/(height*height);
printf("体重指数为:%.2f\n",index);
return 0;

}

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
这啥意思?
立即登录