#include<stdio.h>
int sum(int a[])
{int x=0;
int i;
for(i=0;i<10;i++)
{x+=a[i];}
x+=4;
return x;
}
int main()
{
int i,a[30];
int ans;
for(i=0;i<10;i++)
a[i]=i;
ans=sum(a);
printf("%d\n",ans);
return 0;
}
No comments:
Post a Comment