Skip to content · ⁨Pular para o conteúdo⁩

Add two numbers you were given · ⁨Somar dois números fornecidos⁩

English

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.

Português

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.

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP