48.6k views
0 votes
Write an flowchart Read in two numbers then display the smallest.

User Zardav
by
8.6k points

1 Answer

6 votes
Here is a flowchart that reads in two numbers and displays the smallest:

start
|
v
input number1
|
v
input number2
|
v
if number1 < number2 then
|
v
display number1
|
v
else
|
v
display number2
|
v
end

The flowchart starts by reading in two numbers, number1 and number2. It then checks if number1 is less than number2. If it is, the flowchart displays number1. If it is not, the flowchart displays number2. Finally, the flowchart ends
User Sophonie
by
8.0k points

No related questions found