6 kyu

[BF] Sum 0 to N

Description:

So simple, all you have to do for this kata is Write a program in BrainFuck sum of all integers from 0 to N

Your program will be tested with all natural numbers which not bigger than 20.

Input:

Natural number not bigger than 20. (0 <= N <= 20)

The input will be terminated with a null character for EOF.

Output:

Sum of all integers from 0 to N

Example:

Input: 5

Output: 0+1+2+3+4+5 15

Fundamentals
Algorithms
Mathematics

More By Author:

Check out these other kata created by iNont

Stats:

CreatedFeb 2, 2018
PublishedFeb 2, 2018
Warriors Trained436
Total Skips43
Total Code Submissions708
Total Times Completed58
BF Completions58
Total Stars9
% of votes with a positive feedback rating91% of 22
Total "Very Satisfied" Votes18
Total "Somewhat Satisfied" Votes4
Total "Not Satisfied" Votes0
Total Rank Assessments3
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • iNont Avatar
  • Voile Avatar
Ad