You are viewing a single comment's thread. Return to all comments →
Here's my code in C
#include<stdio.h> long aVeryBigSum(long long int ,int); int main() { int n,i; long long int p; scanf("%d",&n); long long int arr[n]; for(i=0;i<n;i++) { scanf("%lld",&arr[i]); } p=aVeryBigSum(arr,n); printf("%lld",p); } long aVeryBigSum(long long int arr,int n) { long long int sum=0,i; for(i=0;i<n;i++) { sum+=arr[i]; } return sum; }
*
Seems like cookies are disabled on this browser, please enable them to open this website
A Very Big Sum
You are viewing a single comment's thread. Return to all comments →
Here's my code in C
*