Sample prog.c
output after sum.s
is implemented.
./prog
This program computes the sum of 1-N
Enter an value for n: 10
The sum of 1 to 10 is 55
./prog
This program computes the sum of 1-N
Enter an value for n: 50
The sum of 1 to 50 is 1275
Sample prog.c
output after sum.s
is implemented.
./prog
This program computes the sum of 1-N
Enter an value for n: 10
The sum of 1 to 10 is 55
./prog
This program computes the sum of 1-N
Enter an value for n: 50
The sum of 1 to 50 is 1275