14 lines
318 B
Python
14 lines
318 B
Python
|
|
num1 = int(input("Enter 1 number: "))
|
||
|
|
num2 = int(input("Enter 2 number: "))
|
||
|
|
num3 = int(input("Enter 3 number: "))
|
||
|
|
sel = int(input("Summ(1) and proiz(2): "))
|
||
|
|
summ = ( num1 + num2 + num3 )
|
||
|
|
proz = ( num1 * num2 * num3 )
|
||
|
|
|
||
|
|
if sel == 1:
|
||
|
|
print(summ)
|
||
|
|
elif sel == 2:
|
||
|
|
print(proz)
|
||
|
|
else:
|
||
|
|
print("please enter 1 and 2")
|