最新回答 / 慕瓜8241910
#include <stdio.h>/* 考虑一下哪个输出该用无参函数哪个输出该用有参函数呢? */int add(int n){ int i; for(i=1;i<=n;i++) { printf("小明在慕课网上学习\n"); printf("小明在慕课网上已经参与学习了%d门课程\n",i); } return 0;}int main(){ add(2); return 0;}
2017-12-15
最赞回答 / songone
最后一个else语句没写完,前面else if里面写的有问题,不能写成10000>score>=5000,要写成score<10000&&score>=5000这种带&&,
2017-12-13
最赞回答 / 风行无极
#include<stdio.h>int main(){ int year=2014; if(year/100==0&&year/400==0) { printf("%d年是闰年",year); } else if(year/4==0) { printf("%d年是闰年",year); } else { printf("%d年是平年",year); } return 0;...
2017-12-12
最新回答 / 慕姐5447012
#include <stdio.h>#include <math.h>int main(){ int k; int i=1,j=1; float a[20],d=0,b; b=i+j; for(k=0; k<20; k++) { j=i; a[k]=(i/b)*pow(-1,k); i=b; b=b+j; d+=a[k]; } printf("计算1/2,-2...
2017-12-12