Hackerrank solution A very big sum - Solution in C | Algorithms - Online Judge Solution

Latest

It is a free Online judges problems solution list. Here you can find UVA online Judge Solution, URI Online Judge Solution, Code Marshal Online Judge Solution, Spoz Online Judge Problems Solution

Saturday, May 6, 2017

Hackerrank solution A very big sum - Solution in C | Algorithms

HackerRank Online Judge Solution  | Algorithms

HackerRank Main Problem Link - https://www.hackerrank.com/challenges/a-very-big-sum

Problem 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 - Solution in C | Algorithms


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