module4FlowchartAndPseudocode Drawio

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

start

Declarations
num num1
num num2
num num3

output "Enter a number: "

input num1

output "Enter a second


number: "

input num2

output "Enter a third number: "

input num3

num1+num2==num3? Yes
or
ouput "The sum of two numbers you entered
num1+num3==num2?
equals the third
or
num2+num3==num1?

No

stop
start
declarations
num num1=0
num num2=0
num num3=0
ouput "Enter a number: "
input num1
output "Enter a second number: "
input num2
ouput "Enter a third number: "
input num3
if num1+num2==num3 or num1+num3==num2 or
num2+num3==num1:
ouput "The sum of two numbers you entered equals the third:
endif
stop

You might also like