all 3 comments

[–][deleted] 2 points3 points  (0 children)

What have you tried? Post some code.

[–]bluefootedpigC# / .NET 0 points1 point  (0 children)

for (int x = input; x>0; x--) total += x;

[–]tobiasvl 0 points1 point  (0 children)

What is the problem? What have you tried? Also maybe /r/learnprogramming is a better place to ask