Construct an algorithm that will input values for A and B. Compare the two values inputted and print which of the values is higher including the remark “Higher”.
1 Prompt for value A
2 Read value A
3 Prompt for value B
4 Read value B
5 Set Higher to A
6 If B > A then set Higher to B
7 Print string "Higher: "
8 Print value of Higher
Comments
Leave a comment