/ Published in: Ruby

El programa dice cual es la piedra de mayor peso
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
piedra1 = 40 piedra2 = 12 if piedra1 > piedra2 puts "piedra1 pesa mas" elsif piedra1 == piedra2 puts "los dos pesan igual" else puts"piedra2 es la mayor peso" end
Comments
