21天好习惯 第一期-Day10
作者:互联网
今天是关于函数的练习
#include <stdio.h>
void PrintN ( int N );
int main ()
{
int N;
scanf("%d", &N);
PrintN( N );
return 0;
}
/* 你的代码将被嵌在这里 */
#include <stdio.h>
#define MAXN 10
int Sum ( int List[], int N );
int main ()
{
int List[MAXN], N, i;
scanf("%d", &N);
for ( i=0; i<N; i++ )
scanf("%d", &List[i]);
printf("%d\n", Sum(List, N));
return 0;
}
标签:include,天好,21,int,scanf,List,Day10,main,PrintN 来源: https://blog.csdn.net/m0_60459225/article/details/121090873