-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPyth-geek(1).py
More file actions
54 lines (42 loc) · 1.33 KB
/
Pyth-geek(1).py
File metadata and controls
54 lines (42 loc) · 1.33 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
a = 55
b = 8
c = 9
text = 'Text'
print(a,"",b,"",c,"",text)
a = int(input('Первое число: '))
b = int(input('Второе число: '))
c = int(input('Третье число: '))
text = (input('Текстовая переменная: '))
print(a,b,c,text)
sec = int( input('Enter seconds: ') )
h = ((sec//3600))%24
m = (sec//60)%60
s = sec%60
print(h,'hours',m,'min',s,'sec')
n = int(input('Enter n: '))
print('n + nn + nnn = ',n + n*10 + n + n*100 + n*10 + n)
n = int(input('Введите целое положительное число: '))
m = n%10
n = n//10
while n > 0:
if n%10 > m:
m = n%10
n = n//10
print('Самая большая цифра:',m)
a = float(input('Выручка: '))
b = float(input('Издержки: '))
if a > b :
print('Прибыль составила: ',int(a-b))
p = int(input('Кол-во сотрудников: '))
print('Прибыль на одного сотрудника: ',(a-b)/p)
elif a == b :
print('Фирма сработала в 0')
else:
print('Убыток составил: ', int(b-a))
a = float(input('Км в первый день: '))
b = float(input('Цель: '))
day = 1
while a < b :
a = a * 1.1
day = day + 1
print('Кол-во дней понадобилось ', day,' дней для преодоления ', a, ' км')