From 91d3faf4bb2ced9441e17dea3d7676d80e0673ea Mon Sep 17 00:00:00 2001 From: fox Date: Wed, 17 Sep 2025 19:40:10 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practica2_rel/task1_rpo254.py | 13 +++++++++++++ Practica2_rel/task2_rpo254.py | 6 ++++++ Practica2_rel/task3_rpo254.py | 4 ++++ Practica2_rel/task4_rpo254.py | 1 + Practica2_rel/task5_rpo254.py | 1 + 5 files changed, 25 insertions(+) create mode 100644 Practica2_rel/task1_rpo254.py create mode 100644 Practica2_rel/task2_rpo254.py create mode 100644 Practica2_rel/task3_rpo254.py create mode 100644 Practica2_rel/task4_rpo254.py create mode 100644 Practica2_rel/task5_rpo254.py diff --git a/Practica2_rel/task1_rpo254.py b/Practica2_rel/task1_rpo254.py new file mode 100644 index 0000000..e0a881f --- /dev/null +++ b/Practica2_rel/task1_rpo254.py @@ -0,0 +1,13 @@ +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") diff --git a/Practica2_rel/task2_rpo254.py b/Practica2_rel/task2_rpo254.py new file mode 100644 index 0000000..1d29e67 --- /dev/null +++ b/Practica2_rel/task2_rpo254.py @@ -0,0 +1,6 @@ +salary = int(input("salary: ")) +credit = int(input("credit: ")) +comm_u = int(input("service: ")) + +obd = (salary - credit - comm_u) +print(obd) diff --git a/Practica2_rel/task3_rpo254.py b/Practica2_rel/task3_rpo254.py new file mode 100644 index 0000000..cf60303 --- /dev/null +++ b/Practica2_rel/task3_rpo254.py @@ -0,0 +1,4 @@ +d1 = int(input("Diagonal^1: ")) +d2 = int(input("Diagonal^2: ")) +s = (d1 * d2) / 2 +print(s) diff --git a/Practica2_rel/task4_rpo254.py b/Practica2_rel/task4_rpo254.py new file mode 100644 index 0000000..a400770 --- /dev/null +++ b/Practica2_rel/task4_rpo254.py @@ -0,0 +1 @@ +print("To be\nor not\nto be") diff --git a/Practica2_rel/task5_rpo254.py b/Practica2_rel/task5_rpo254.py new file mode 100644 index 0000000..a52c869 --- /dev/null +++ b/Practica2_rel/task5_rpo254.py @@ -0,0 +1 @@ +print("<>")