This repository has been archived on 2025-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Files
python_it_top/Practica2_rel/task1_rpo254.py

14 lines
318 B
Python
Raw Permalink Normal View History

2025-09-17 19:40:10 +05:00
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")