fork(3) download
  1. def multiplo(x):
  2. return (x + 9) / 10 * 10
  3.  
  4. for x in range(150, 161):
  5. print(x, multiplo(x))
Success #stdin #stdout 0.01s 7736KB
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)