看我哪里错了···帮忙改正一下#includeint jc();void main(){int ae,all;printf("please input ae:");scanf("%d",&ae);jc(ae);printf("%d\n",all);getch();}int jc(int n,int sum ){int i,j=1;for(i=1;i

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/28 09:23:17
看我哪里错了···帮忙改正一下#includeintjc();voidmain(){intae,all;printf("pleaseinputae:");scanf("%d",&ae);jc(ae);

看我哪里错了···帮忙改正一下#includeint jc();void main(){int ae,all;printf("please input ae:");scanf("%d",&ae);jc(ae);printf("%d\n",all);getch();}int jc(int n,int sum ){int i,j=1;for(i=1;i
看我哪里错了···帮忙改正一下
#include
int jc();
void main()
{
int ae,all;
printf("please input ae:");
scanf("%d",&ae);
jc(ae);
printf("%d\n",all);
getch();
}
int jc(int n,int sum )
{
int i,j=1;
for(i=1;i

看我哪里错了···帮忙改正一下#includeint jc();void main(){int ae,all;printf("please input ae:");scanf("%d",&ae);jc(ae);printf("%d\n",all);getch();}int jc(int n,int sum ){int i,j=1;for(i=1;i
#include
#include //getch()要用的库
int jc(int); //形参加上
void main()
{
int ae,all;
printf("please input ae:");
scanf("%d",&ae);
all=jc(ae); //返回值到all
printf("%d\n",all);
getch();
}
int jc(int n) //只需要传递1个
{
int sum=0; //增加
int i,j=1;
for(i=1;i