How to solve program by using next Ruby?

I want to do program " Print 1 to 10 number" by using next loop.

How can I solve this programs.

Thank you.

What have your tried. Show us your attempt and we will tells you how
well
you did.