#!/usr/bin/ruby $i = 0 $num = 5 while $i < $num do puts("Inside the loop i = #$i" ) $i +=1 end. 這將產生以下結果: Inside the loop i = 0 Inside the loop i ...
確定! 回上一頁