The Bigger One (Baby Steps)

Two friends compare their scores a and b. Print the bigger score. If they are equal, print that score.

Input: Two integers a and b (-1000 to 1000).

Output: One integer: the bigger of the two.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Compare with if (a b).

More Baby Steps practice