Computer Science, asked by aryanmishra86191, 7 months ago

Draw a flowchart to find the smallest among three numbers entered by the user.

please answer fast it's urgent ​

Answers

Answered by Anonymous
80

Answer:

Algorithm to Find the Smallest of three Numbers

1. Declare three variable a, b, c.

2. Compare a with b and c. If a is smaller than b and c than a is smallest among three numbers.

3. Compare b with a and c. if b is smaller than a and c than b is smallest among three numbers.

4. Else c is smallest among three numbers.

Attachments:
Answered by monica789412
22

Flowchart is a planning tool to maintain the sequence of steps that are requires to solve a problem through diagrammatic representation in a sequential manner.

  • It uses boxes of different shapes to indicate different types of instructions.
  • The boxes are connect by the solid lines and the arrow helps in dictating the flow of control of the flowchart.

In making a flowchart to find the smallest between the three numbers  following steps are required:

  • Start
  • Initialize the three variables a, b, c as integer type.
  • Take the value of a, b, c from the user
  • Check if  

        a>b and a>c

        print a is the smallest element

  • else if

        b>a and b>c

        print b is the smallest element

  • else

        print c is the smallest element.

  • End

Below is the figure describing the above steps in flowchart.

Attachments:
Similar questions