# Arithmetic expressions - numbers, operators, expressions
# Operations


# Addition, Subtraction, Multiplication, and Division
# They are calculated as usual according to the order of
#	operations

# Addition
print "Ex. 1:", 4 + 5
print "Ex. 2:", 3 + 4 + 7
print

# Subtraction
print "Ex. 3:", 5 - 2
print "Ex. 4:", 3 - 7
print

# Multiplication
print "Ex. 5:", 6 * 4
print "Ex. 6:", 2 * 3 * 5
print

# Division
print "Ex. 7:", 10 / 2
print "Ex. 8:", 5 / 3


print "--------"
# Decimals, negative numbers, and fractions can also be used

# Decimals
print "Ex. 9:", 1.5 + 2.75
print "Ex. 10:", 2.0 * 1.75
print "Ex. 11:", 5.0 / 2.0 + .5
print

# Negative numbers
print "Ex. 12:", -4 + 8
print "Ex. 13:", 6 * -5
print "Ex. 14:", 4 - -3
print "Ex. 15:", -5.0 / -.75
print

# Fractions (include parenthesis)
print "Ex. 16:", (3.0 / 4.0) + (5.0 / 4.0)
print "Ex. 17:", 5 * (1.0 / 2.0)
print "Ex. 18:", -(1.0 / 2.0) * 3
print "Ex. 19:", (3.0 / 4.0) + .75
print





