Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions exercises/somma.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
""""""""""""""""
Write a program that takes as input two numbers and print the sum.

Output:
Insert the first number: 1
Insert the second number: 2
Sum: 3

"""""""""""""""

a = input("inserisci il primo numero: ")
b = input("Inserisci il secondo numero: ")

sum = int(a) + int(b)

print("La somma è", sum)