Computer Science, asked by anurag9788, 1 year ago

Flowchart for sum of n natural numbers in python

Answers

Answered by chamanthyarlagadda
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