代码拉取完成,页面将自动刷新
# check how many chickens are there.
puts 'I will now count my chichens:'
# hens have 30.
puts 'Hens', 25 + 30 / 6
# roosters have 97.
puts 'Roosters', 100 - 25 * 3 % 4
# the number of eggs.
puts 'Now I will count the eggs:'
# number : 7
puts 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6
# is it true
puts 'Is it true that 3 + 2 < 5 - 7?'
# false
puts 3 + 2 < 5 - 7
# 5
puts 'what is 3 + 2?', 3 + 2
# -2
puts 'what is 5 - 7?', 5 - 7
# it's false
puts "Oh, that's why it's false."
# it's false
puts 'How about some more.'
# true
puts 'Is it greater?', 5 > -2
# true
puts 'Is it greater or equal?', 5 >= -2
# false
puts 'Is it less or equal?', 5 <= -2
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。