fork(1) download
  1. def multiplo(x):
  2.  
  3. somamulti = x #mudei para rodar no IDEONE
  4.  
  5. if somamulti % 10 == 0:
  6. return somamulti
  7. else:
  8. return somamulti + 10 - ( somamulti % 10 )
  9.  
  10.  
  11. for x in range( 147, 163):
  12. print( x, multiplo(x) )
Success #stdin #stdout 0s 7736KB
stdin
Standard input is empty
stdout
(147, 150)
(148, 150)
(149, 150)
(150, 150)
(151, 160)
(152, 160)
(153, 160)
(154, 160)
(155, 160)
(156, 160)
(157, 160)
(158, 160)
(159, 160)
(160, 160)
(161, 170)
(162, 170)