HackerRank Online Judge Solution | Algorithms
HackerRank Main Problem Link - https://www.hackerrank.com/challenges/a-very-big-sumProblem Name: HackerRank A very big sum Solution
Problem Number : HackerRank Problem A very big sum Solution
Online Judge : HackerRank Online Judge Solution
Category: Algorithm
Solution Language : C, C plus plus
HackerRank Solution A very big sum Code in C:
#include <stdio.h> int main(){ int n; long int arr_i; scanf("%d",&n); long int sum = 0; long arr[n]; for(arr_i = 0; arr_i < n; arr_i++){ scanf("%li",&arr[arr_i]); sum += arr[arr_i]; } printf("%li\n", sum); return 0; }
Tags:
Hackerrank solution A very big sum - Solution in C | Algorithms, A very big sum solution, A very big sum hackerrank solution
No comments:
Post a Comment