➽ Problem:-
https://www.hackerrank.com/challenges/a-very-big-sum/problem
➽ Solution:-
#include<bits/stdc++.h>
using
namespace std;
int main()
{
int N;
cin>>N;
unsigned long long int sum=0,arr[N];
for(int i=0;i<N;i++)
{
cin>>arr[i];
sum += arr[i];
}
cout<<sum<<endl;;
return 0;
}
0 Comments
Please do not enter any spam link in the comment section.