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("<>")