Yurttas/PL/SL/ruby/F/02/06/01/d 02.rb
Jump to navigation
Jump to search
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# d_02.rb
14#
15
16print "-> i : "
17
18i = gets.to_i
19
20print "i = "
21
22if i==1
23 print i, "\n"
24elsif i==2
25 print i+2, "\n"
26elsif i==3 then print i+4, "\n"
27else
28 print i+8, "\n"
29end