Advertisement
nanenj

Ruby for FB Post question

Jan 16th, 2020
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.16 KB | None | 0 0
  1. print "Enter no1: "
  2. no1 = gets.chomp.to_i
  3.  
  4. print "Enter no2: "
  5. no2 = gets.chomp.to_i
  6.  
  7. for i in 1..no1 do
  8.   for j in 1..no2 do
  9.     puts i, j
  10.   end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement