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
Hindi,
6 months ago
English,
6 months ago
Science,
6 months ago
English,
1 year ago
Computer Science,
1 year ago
Computer Science,
1 year ago