โœ๏ธ

Maximum with a function

Easy๐Ÿท๏ธ Functions๐Ÿ“‚ Functions & Decomposition
๐Ÿงฉ The problem

Write FUNCTION MAX2(A, B) that RETURNs the larger value. Then TAKE two numbers and DISPLAY MAX2 of them.

Examples

  • Input: 4, 9 โ†’ 9

โœ๏ธ Write your pseudocode

Press Run to watch it step by step, and Run tests to check it against every test case.

โ† All practice problems