Добавление
This commit is contained in:
13
Practica2_rel/task1_rpo254.py
Normal file
13
Practica2_rel/task1_rpo254.py
Normal file
@@ -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")
|
||||||
6
Practica2_rel/task2_rpo254.py
Normal file
6
Practica2_rel/task2_rpo254.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
salary = int(input("salary: "))
|
||||||
|
credit = int(input("credit: "))
|
||||||
|
comm_u = int(input("service: "))
|
||||||
|
|
||||||
|
obd = (salary - credit - comm_u)
|
||||||
|
print(obd)
|
||||||
4
Practica2_rel/task3_rpo254.py
Normal file
4
Practica2_rel/task3_rpo254.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
d1 = int(input("Diagonal^1: "))
|
||||||
|
d2 = int(input("Diagonal^2: "))
|
||||||
|
s = (d1 * d2) / 2
|
||||||
|
print(s)
|
||||||
1
Practica2_rel/task4_rpo254.py
Normal file
1
Practica2_rel/task4_rpo254.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
print("To be\nor not\nto be")
|
||||||
1
Practica2_rel/task5_rpo254.py
Normal file
1
Practica2_rel/task5_rpo254.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
print("<<Life is what happens\n \t\t\twhen\n \t\t\t\tyou're busy making other plans>>")
|
||||||
Reference in New Issue
Block a user