码迷,mamicode.com
首页 > 其他好文 > 详细

ex3-数字和数字计算

时间:2016-08-28 06:31:32      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:

代码:

print("I will now count my chickens:")

print("hens", 25+30/6)
print("Roosters", 100-25*3%4)
print("I will count the eggs:")
print(3+2+1-5+4%2-1/4+6)
print("Is it true 3+2<5-7?")
print(3+2<5-7)

print("What is 3+2", 3+2)
print("What is 5-7", 5-7)
print("On,that‘s why it‘s False.")
print("How about some more.")

print("Is it greater?", 5 > -2)
print("Is it greater or equal?", 5 >= -2)
print("Is it less or equal?", 5 <= -2)

 

技术分享

ex3-数字和数字计算

标签:

原文地址:http://www.cnblogs.com/zjcsweb/p/5814230.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!