Skip to content
C

Add Two Numeric Strings

Mediumjava

Two numbers arrive as text (String). Convert each to an int and print their sum. A cast like (int) does not work here — you must parse.

Input: two lines, each a whole number written as text.

Output: one line — the sum of the two numbers.

Input (stdin)

Output

Run your code to see output here...