From 445c0191550083f59b52377840ee01a5a527e45b Mon Sep 17 00:00:00 2001 From: Matteo Sangiorgio Date: Mon, 30 Oct 2023 18:54:52 +0100 Subject: [PATCH] esercizio somma --- esercizi/sum.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 esercizi/sum.py diff --git a/esercizi/sum.py b/esercizi/sum.py new file mode 100644 index 0000000..e594b41 --- /dev/null +++ b/esercizi/sum.py @@ -0,0 +1,17 @@ + +# 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 + + +x = input("insert the first number:") +y = input("insert the second number:") + +sum = int(x) + int(y) + +print("The sum is: ", sum) + +