Question
1. Write a compareInts method that takes two integer parameters and prints out the statement
‘a’ is less than ‘b’
‘a’ is greater than ‘b’, or
‘a’ is equal to ‘b’
heres the code
compareInts(2, 3);
compareInts(3, 2);
compareInts(3, 3);
someone help please
‘a’ is less than ‘b’
‘a’ is greater than ‘b’, or
‘a’ is equal to ‘b’
heres the code
compareInts(2, 3);
compareInts(3, 2);
compareInts(3, 3);
someone help please
Answers
oobleck
if a < b then print "a is less than b"
else ...
else ...