Flowchart for sum of n natural numbers in python
Answers
Answered by
0
Below flowchart indicates sum of n natural numbers.
Step-1: Declare two integers n,s.
Step-2: Input n.
Step-3: Assign value of s to be 0.
Step-4: Add value of n to s and reduce value of n by 1 till n becomes 0
Step-5: Output the value of s i.e;Sum of n natural numbers.
This is just pseudoform of code.
Attachments:
Similar questions
Math,
5 months ago
Math,
5 months ago
Computer Science,
5 months ago
History,
10 months ago
English,
10 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago