Добавление

This commit is contained in:
2025-09-17 19:40:10 +05:00
parent b4863727d4
commit 91d3faf4bb
5 changed files with 25 additions and 0 deletions

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

View 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)

View File

@@ -0,0 +1,4 @@
d1 = int(input("Diagonal^1: "))
d2 = int(input("Diagonal^2: "))
s = (d1 * d2) / 2
print(s)

View File

@@ -0,0 +1 @@
print("To be\nor not\nto be")

View File

@@ -0,0 +1 @@
print("<<Life is what happens\n \t\t\twhen\n \t\t\t\tyou're busy making other plans>>")