1 #include<stdio.h>
2 int main()
3 {
4 int num[100],sum=0,n,i,ret;
5 printf(“enter the number of values u want 2 add\n”);
6 scanf(“%d”,&n);
7 printf(“enter the values\n”);
8 for(i=0;i<n;i++)
9 {
0 scanf(“%d”,&num[i]);
1 sum=sum+num[i];
2 }
3 printf(“sum=%d\n”,sum);
4 ret = printf(“sum=%d\n”,sum);
5 printf(“ret=%d\n”,ret);
6 return 0;
7
8 }