How can I shroten the condition because it has the same satisfying that greater than zero. Here is the code below:
a = 10 b = 5 c = 2 if a > 0 || b > 0 || c > 0 puts "greater that zero" else puts "it is zero or less than zero" end
Aucun commentaire:
Enregistrer un commentaire