fork(1) download
  1. def multiplo(x):
  2. return (x + 9) / 10 * 10
  3.  
  4. for x in range(150, 161):
  5. print(x, multiplo(x))
  6.  
  7. #https://pt.stackoverflow.com/q/54761/101
Success #stdin #stdout 0.01s 7272KB
stdin
Standard input is empty
stdout
(150, 150)
(151, 160)
(152, 160)
(153, 160)
(154, 160)
(155, 160)
(156, 160)
(157, 160)
(158, 160)
(159, 160)
(160, 160)