CJCoding With Joseph
15free / daySign inCreate account

Add Two Numbers

Complete add(a: int, b: int) -> int so it returns the sum of its two parameters. The driver under the tests below comment reads two whole numbers and prints what the function returns; leave it as it is. Input: two lines, each an integer, no prompts. Output: the sum on one line.

Expected Output:

7

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
FunctionsType Hints
📥 Auto-Input:
3\n4\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.