que piedra pesa mas


/ Published in: Ruby
Save to your folder(s)

na


Copy this code and paste it in your HTML
  1. piedra1 = 40
  2. piedra2 = 43
  3.  
  4. if piedra1 > piedra2
  5. puts "piedra1 es la de mayor peso"
  6. elsif piedra1 == piedra2
  7. puts "piedra1 tiene el mismo peso"
  8. else
  9. puts "piedra2 es la de mayor peso"
  10. end

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.