+ 3

Question??? Write a pseudocode that finds the greatest of 3 numbers

2nd Feb 2017, 7:44 AM
sally
sally - avatar
3 Respostas
+ 8
Good point @Jafca
2nd Feb 2017, 8:28 AM
Hatsy Rei
Hatsy Rei - avatar
+ 7
@Hatsy Rei What if they're negative? Assign first input into max?
2nd Feb 2017, 8:28 AM
Jafca
Jafca - avatar
+ 6
BEGIN declare variables a, b, c, max. initialize max to 0. prompt user to input first number into variable a prompt user to input second number into variable b prompt user to input third number into variable C IF a is greater than max, assign a to max IF b is greater than max, assign b to max IF c is greater than max, assign c to max print max. END
2nd Feb 2017, 8:23 AM
Hatsy Rei
Hatsy Rei - avatar