Your program should read in two positive values a and b and print the following table:
N | Sum | Formula |
---|---|---|
a | 1+2+3+4+5+6+...+a | a*(a+1)/2 |
a+1 | 1+2+3+4+5+6+...+a+a+1 | (a+1)*(a+2)/2 |
... | ... | ... |
b | 1+2+3+4+5+6+...+b | b*(b+1)/2 |
N | Sum | Formula |
---|---|---|
1 | 1 | 1 |
2 | 3 | 3 |
3 | 6 | 6 |
When you have completed this assignment, please email to source code to dbennett@edinboro.edu. If you require assistance with this, pelase see me.