1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Ruby program to find biggest of two numbers
 
puts("Enter first number:");
a = gets.to_f
 
puts("Enter first number:");
b = gets.to_f
 
 
if (a > b) then
 puts("#{a} is big")
else
 puts("#{b} is big")
end
VN:F [1.1.6_502]
Rating: 0.0/5 (0 votes cast)
Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • LinkedIn
  • Live
  • MySpace
  • StumbleUpon
  • Technorati

Related posts:

  1. Sample ruby program
  2. Anybody remember our old BASIC?
  3. What is the difference between CAST and CONVERT in SQL?
  4. Build DateTime from values
  5. My first JSP program