Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esercizio somma #164

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
17 changes: 17 additions & 0 deletions esercizi/sum.py
Original file line number Diff line number Diff line change
@@ -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)


Loading