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

语法哪里错了

语法哪里错了

C++ C
noe12138 2018-11-28 08:14:51
#include  <stdio.h>main(){ float rate=0.0225,capital,deposit; int n; printf("capital:"); scanf("%f",&capital); print("year:"); scanf("%d",&n); deposit=capital+capital*n*rate; printf("deposit:%f",deposit); return 0;}
查看完整描述

1 回答

已采纳
?
___C___

TA贡献168条经验 获得超109个赞

print("year:");  //这一句写错,正确printf("year:"); 

谢谢采纳

查看完整回答
反对 回复 2018-11-30
  • 1 回答
  • 0 关注
  • 866 浏览

添加回答

举报

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