Advertisement
MonsterScripter

CodinGame_2023_09_05__18_39_14__odd.rb

Sep 5th, 2023
1,252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.06 KB | None | 0 0
  1. n=gets.to_i;(1..n).each{|i|puts (1..n).select{|j|i%j==0}*' '}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement