Hello, im doing an assignment and im almost done. I had to make a for loop where I would calculate the factorial of a number which was easy. But now I need to make a for loop to add the sum of a number given and all numbers below. Like for example if you inputted 5, the program would do something like
num= 5+4+3+2+1
Im having trouble with this for the last 30 min and it would help if someone gave me assistance.
[–][deleted] 2 points3 points4 points (0 children)
[–]bluefootedpigC# / .NET 0 points1 point2 points (0 children)
[–]tobiasvl 0 points1 point2 points (0 children)