Trying to figure out an exercise out of a text I've got.
Supposed to use the formula:
Triangular number = n(n+1)/2
I now need to create something that will allow a user to enter initial, ending, and step values. i.e. 1 11 2 (this would give me an output of 1, 3, 5, 7, 9, 11)
How do I go about using scanf, and a for loop to do this? Then I want to display it as a simple little table. i.e. triangular number
Probably something simple I have just overlooked...or too many hours at the office has my mind swimming.
I appreciate any help pointing me in the right direction.