为了账号安全,请及时绑定邮箱和手机立即绑定

帮我看下错在哪里?

帮我看下错在哪里?

C
受伤了的狼 2015-08-02 08:52:21
#include <stdio.h>int main(){ double foot,inch,height;  scanf("%d %d;&foot, &inch"); height=(foot+inch/12)*0.3048; printf("你的身高为%d\n,"height); return 0;}
查看完整描述

3 回答

?
Alone_shin

TA贡献5条经验 获得超0个赞

还有是%f不是%d

查看完整回答
反对 回复 2015-08-02
?
Alone_shin

TA贡献5条经验 获得超0个赞

主要错在符号“”() ;

查看完整回答
反对 回复 2015-08-02
?
Alone_shin

TA贡献5条经验 获得超0个赞

#include <stdio.h>

int main()

{

float foot,inch,height;

scanf("%f %f",&foot, &inch);

height=(foot+inch/12)*0.3048;

printf("你的身高为%d\n",height);

return 0;


}



查看完整回答
反对 回复 2015-08-02
  • 3 回答
  • 0 关注
  • 1200 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信