看我哪里错了···帮忙改正一下#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/11/28 11:54:30
看我哪里错了···帮忙改正一下#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