Program 2

Write a program on cslab60 using sparc assembly that demonstrates the equation

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
For example: if a=1 and b=3
N Sum Formula
1 1 1
2 3 3
3 6 6
Assume that the input is correct and error free.

When you have completed this assignment, please email to source code to dbennett@edinboro.edu. If you require assistance with this, pelase see me.