Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1 Задание
- n = 0
- s = 0
- while s <= 365:
- s = s + 36
- n = n + 10
- print(n) #110 выводит ,потому что мы считали сколько раз выводит переменная s число
- #5 Задание
- k = 2
- x = int(input())
- while x % k:
- k += 1
- print(k)
- #4 Задание
- n = int(input("Сенокосилки "))
- m = int(input("Ввод часов "))
- c = 0
- m = m * 60
- sum_m = m
- while c != n:
- m = m + 10
- c += 1
- sum_m = sum_m + m
- print(m)
- #2 Задание
- prev = int(input())
- answer = 0
- while prev != 0:
- next = int(input())
- if next != 0 and prev < next:
- answer += 1
- prev = next
- print(answer)
- #3 Задание
- n = int(input("Введите первое число "))
- u = 1
- c = 1
- while c <= n:
- u *= c
- c += 1
- print(u)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement