语法哪里错了

#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;


}

noe12138
浏览 899回答 1
1回答

___C___

print("year:");  //这一句写错,正确printf("year:"); 谢谢采纳
打开App,查看更多内容
随时随地看视频慕课网APP