write algorithm,flow chart,pseudocode to find sum of n natural numbers
Answers
Answered by
4
Answer:
Hi mate
Explanation:
The following shapes are often used in flowcharts: Pseudocode is a method of describing computer algorithms using a combination of natural language and programming language.
...
Enter Limit.
Set Number = 0.
Set Sum = 0.
Repeat the following: a. If Sum > Limit, terminate the repitition, otherwise. b. ...
Print Number and Sum.
Answered by
7
Answer:
Explanation:
Hi dude
Algorithm: Start. 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. Print the sum. Stop.
Similar questions