Ruby program to print numbers from 1 to 10 using while loop. ... while loop. input = 1 while input<=10 puts input input = input + 1 end ...
確定! 回上一頁