Created
April 24, 2013 18:20
Revisions
-
hiddenpower created this gist
Apr 24, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ def ftoc(degree) answer = ((degree -32) * 5.0 / 9.0).round(1) puts answer end def ctof(degree) answer = (degree * 9.0 / 5.0 + 32).round(1) puts answer end def fact(n) for i in 1..n (n-i).times{printf " "} for j in 1..i printf "*" end puts"" end end