Add two numbers you were given · Somar dois números fornecidos
Add two numbers you were given
Read two whole numbers, one per line, and print their total. For 3 and 4, print 7.
Two reads, two int(...), then one +. Forget one int and you get 34 instead of 7 — Python joined the text rather than adding the numbers.
Some dois números fornecidos
Leia dois números inteiros, um por linha, e imprima seu total. Para 3 e 4, imprima 7.
Duas leituras, duas int(...), depois uma +. Esquecer uma int resulta em 34 em vez de 7 — o Python uniu os textos em vez de somar os números.
Read two whole numbers, one per line, and print their total. For 3 and 4, print 7. · Leia dois números inteiros, um por linha, e imprima seu total. Para 3 e 4, imprima 7.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.