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
Similar Kata:
Stats:
Created | Mar 16, 2016 |
Published | Mar 18, 2016 |
Warriors Trained | 48549 |
Total Skips | 8234 |
Total Code Submissions | 110234 |
Total Times Completed | 22727 |
Java Completions | 3583 |
C++ Completions | 2159 |
PHP Completions | 1551 |
CoffeeScript Completions | 23 |
JavaScript Completions | 6186 |
C# Completions | 1411 |
Python Completions | 6432 |
Ruby Completions | 536 |
Crystal Completions | 22 |
Dart Completions | 996 |
Haskell Completions | 302 |
Prolog Completions | 27 |
Total Stars | 359 |
% of votes with a positive feedback rating | 76% of 2957 |
Total "Very Satisfied" Votes | 1863 |
Total "Somewhat Satisfied" Votes | 786 |
Total "Not Satisfied" Votes | 308 |