Search for question
Question

Your assignment is to replace the portion in HA4-main.s that is within hyphened comments (i.e.

everything between lines 40 and 64) by a mainline program. Your program will compute:

1+2+3+4+5+........

....+n. You could prompt the user for n and

display the sum. You might want to use Gauss formula: n(n+1)/2. Create your own sensible prompts and

output messages. An example execution of your program could be: Please enter the number of terms in

your series: 20 The sum of your series is 210.

Fig: 1