-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMODULE_1.py
More file actions
29 lines (26 loc) · 952 Bytes
/
MODULE_1.py
File metadata and controls
29 lines (26 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class Project:
def first(self):
a = float(input())
b = float(input())
c = float(input())
d = a + b + c
print('Результат вычисления суммы трех чисел: ' + str(d))
def second(self):
e = float(input())
e1 = float(input())
s1 = (e * e1) * 0.5
print("Результат вычисления площади прямоугольного треугольника: " + str(s1))
def third(self):
count = float(input())
count_minus = count - 1
count_plus = count + 1
print("Нынешнее число:",count)
print("Число до:",count_minus)
print("Число после:",count_plus)
def four(self):
n = int(input())
k = int(input())
x = k // n
y = k - (x * n)
print("Яблок у студентов:",x)
print("В корзине:",y)