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

Exercise 3: Numbers And Math

时间:2014-10-21 10:03:59      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   os   sp   div   log   bs   as   

print "I will now count my chickens:"
print "Hens", 25 + 30 / 6
print "Roosters", 100 - 25 * 3 % 4
print "Now I will count the eggs:"
print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6
print "Is it true that 3 + 2 < 5 - 7?"
print 3 + 2 < 5 - 7
print "What is 3 + 2?", 3 + 2
print "What is 5 - 7?", 5 - 7
print "Oh, 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

 

Exercise 3: Numbers And Math

标签:style   blog   color   os   sp   div   log   bs   as   

原文地址:http://www.cnblogs.com/hluo/p/4039462.html

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