-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
linuchs
committed
Oct 30, 2023
1 parent
c72f9cf
commit 7179309
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
""" Write a program that takes as input two numbers and print the sum. | ||
""" | ||
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 | ||
""" | ||
def func_somma(var_a: int, var_b: int)-> int: | ||
return var_a+var_b | ||
def sum(var_a: int, var_b: int)-> int: | ||
return var_a + var_b | ||
|
||
x=int(input("Insert the first number: ")) | ||
y=int(input("Insert the second number: ")) | ||
|
||
print("Sum: ",func_somma(x,y)) | ||
print("Sum: ",sum(x,y)) |