A+B: Difference between revisions
Content added Content deleted
(→{{header|Tailspin}}: alternative solution) |
Marco Sulla (talk | contribs) |
||
Line 3,772: | Line 3,772: | ||
for line in sys.stdin: |
for line in sys.stdin: |
||
print(sum(map(int, line.split())))</lang> |
print(sum(map(int, line.split())))</lang> |
||
===Console, Python 3 only=== |
|||
<lang python>a = int(input("First number: ")) |
|||
b = int(input("Second number: ")) |
|||
print("Result:", a+b)</lang> |
|||
=={{header|QB64}}== |
=={{header|QB64}}== |