Computer Science, asked by sanasona9008, 5 months ago

draw a flowchart to find the sum of the series 1+2+3+4+5+........+100​

Answers

Answered by tharunpalanisamy592
3

draw a flowchart to find the sum of there series

Explanation:

1+2+3+4+5+........+100

Answered by priyadarshinibhowal2
9

Flowchart:

  • When we start drawing a flowchart, we should be aware of the shapes that are used for each step and their purposes required in the program. Now, when terminal positions of the program that is Start and End need to be indicated for the program, an oval is used. When we have to input any data from the user or just initialize data, a parallelogram is used to indicate the same. When we need to print an output that is some data, we also need to indicate this with the help of a parallelogram.
  • When we want to indicate a process that takes place in the program, a rectangle is used to represent a same. An arrow is put in the flowchart between every shape to indicate the flow of the program. When we want to add a decision or any types of loops, a rhombus is used to represent the same in the program.

Here, according to the given information, we are given that,

We need to draw a flowchart to find the sum of the series, that is,

1+2+3+4+5+........+100.

Here, the flowchart will begin with Start in an oval.

Then, the arrow leads to a rectangle that has N initialized as 1 and Sum initialized as 0.

Then the arrow leads to a rectangle which has Sum being added to N and that result is stored in Sum.

Next the arrow leads to another rectangle which increments the value of N by 1.

Next, the arrow leads to a rhombus which checks if N is less than or equal to 100.

If yes, then an arrow leads to the top again, if no, then, the sum is printed in a parallelogram.

Then, the arrow leads to an oval which says End.

Hence, the flowchart is drawn accordingly.

Learn more here

brainly.in/question/6051979

#SPJ3

Attachments:
Similar questions