Main program in the test by myself :: test of decabits arranged by kapil sir

 def odd_number 

yield

yield

yield

end


(8..9).each do |odd_no|

if (odd_no%2!=0)

odd_number {puts odd_no}

end

end

Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5