← Variables & Types

Sum Two Integers

easy

Read two integers from standard input, separated by whitespace, and print their sum in exactly this form:

Sum: 8

This is the smallest possible C program: it exercises variable declaration, scanf for input, integer addition, and printf for output. Get comfortable with this round trip – read, compute, print – before moving on, because every exercise in this course is a variation on it.

Your solution

"Run" uses the sample stdin ("3 5"). "Submit" checks your code against all 3 test cases.

Test results

Submit your solution to run it against all test cases.

Hints

    Reference solution