Ruby program to implement an infinite loop using the while loop
puts "Infinite while loop:";
while (true)
puts "Hello";
end
Output:
Infinite while loop:
Hello
Hello
Hello
Hello
.
.
Infinite times
