7 kyu

Sum of numbers from 0 to N

1,551 of 22,727Javatlacati

Description:

Description:

We want to generate a function that computes the series starting from 0 and ending until the given number.

Example:

Input:

> 6

Output:

0+1+2+3+4+5+6 = 21

Input:

> -15

Output:

-15<0

Input:

> 0

Output:

0=0

Fundamentals

Stats:

CreatedMar 16, 2016
PublishedMar 18, 2016
Warriors Trained48549
Total Skips8234
Total Code Submissions110234
Total Times Completed22727
Java Completions3583
C++ Completions2159
PHP Completions1551
CoffeeScript Completions23
JavaScript Completions6186
C# Completions1411
Python Completions6432
Ruby Completions536
Crystal Completions22
Dart Completions996
Haskell Completions302
Prolog Completions27
Total Stars359
% of votes with a positive feedback rating76% of 2957
Total "Very Satisfied" Votes1863
Total "Somewhat Satisfied" Votes786
Total "Not Satisfied" Votes308
Ad
Contributors
  • Javatlacati Avatar
  • suic Avatar
  • smile67 Avatar
  • Chrono79 Avatar
  • kazk Avatar
  • user5036852 Avatar
  • JohanWiltink Avatar
  • JorgeVS Avatar
  • Voile Avatar
  • monadius Avatar
  • hobovsky Avatar
  • user8436785 Avatar
  • krnets Avatar
  • ejini战神 Avatar
Ad