#!/usr/koeki/bin/ruby start = 10 while start > 0 printf("%d 秒前 \n", start) start -= 1 sleep(1) end printf("発射します \n")