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:
![](https://hi-static.z-dn.net/files/dc1/aa3c205d503bf1535995bfcd4daabd60.png)
Similar questions
Science,
7 months ago
English,
7 months ago
Chemistry,
7 months ago
English,
1 year ago
Computer Science,
1 year ago
Computer Science,
1 year ago