in reply to How do I write a program that calculates the sum of all numbers to a number, n?

We don't do homework for you. What have you tried so far and where are you stuck?
  • Comment on Re: How do I write a program that calculates the sum of all numbers to a number, n?