Asked by Richard

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

Answers

Answered by oobleck
if a < b then print "a is less than b"
else ...
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions