1#
2# Copyright(C) 2008
3# All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4#
5# Permission to use, copy, modify, and distribute this
6# software and its documentation for EDUCATIONAL purposes
7# and without fee is hereby granted provided that this
8# copyright notice appears in all copies.
9#
10# date : June 1, 2008.
11# author : Salih Yurttas. Jackson Booth.
12#
13# r_04.rb
14#
15
16N = 4
17
18j = 1
19
20for i in 0..(N-1)
21 j *= i+1
22 if j>2 then
23 break
24 end
25 print i, ". ", j, "\n"
26end