Forezz

ДЗ 4 Н 4

Jul 9th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. # _*_ coding: utf-8 _*_
  2. print ("Напишите количество сенокосилок")
  3. n = int(input())
  4. print ("Сколько часов работает первая из них?")
  5. m = int(input())
  6. m = m * 60
  7. x = 1
  8. t = m
  9. while x < n:
  10.     c = m + (10 * x)
  11.     t = t + c
  12.     x = x + 1
  13. print (t)
Advertisement
Add Comment
Please, Sign In to add comment