Compute the sum of integers Algorithm

Write an algorithm to compute the sum of integers from 1 to 50 ? please write the answer in descriptive way to solve this ?

Showing Answers 1 - 6 of 6 Answers

Shikhar Singhal

  • Jun 10th, 2013
 

Algorithm-
int sum =0

for i= 1 to 50
sum= sum +i;
print sum;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions