1) Write an Algorithm to print the sum of first n natural numbers. 4 marks.........
Answers
Answered by
1
Answer:
- Declare and initialize variable, i,num, s=0.
- Enter the value of num i.e. number upto which sum is to be calculated.
- Use Loop to add number. Any of while, do-while or for loop can be used.
Similar questions
Math,
3 months ago
Social Sciences,
3 months ago
Science,
3 months ago
Science,
11 months ago
Math,
11 months ago