Read three lines. You need to check whether the third line is equal to the sum of the first two lines.
If the first two lines put together form the third one, print true; otherwise – false.
Read three lines. You need to check whether the third line is equal to the sum of the first two lines.
If the first two lines put together form the third one, print true; otherwise – false.
Sample Input 1:
sum
mer
summerSample Output 1:
trueSample Input 2:
tomato
cucumber
saladSample Output 2:
falseCreate a free account to access the full topic