Write a program that implement the following algorithm:
1. Gets a number into variable A.
2. Gets a number into variable B.
3. If A is different then B:
num1
num2
Show as an output the value of num1 and num2.
Show as an output the sum of num1 and num2.
Otherwise:
num1
Show as an output the value of num1.
Show as an output the message :"equals"
1. Gets a number into variable A.
2. Gets a number into variable B.
3. If A is different then B:
num1
num2
Show as an output the value of num1 and num2.
Show as an output the sum of num1 and num2.
Otherwise:
num1
Show as an output the value of num1.
Show as an output the message :"equals"
No comments:
Post a Comment