A. Introduction

Other than variables, an expression might also needs numeric values such as "3.1415", "2.71828" to compute. These numeric values are called "literals". Sometimes literals maybe fractions or power of tens. How would you write fractions or exponents? See if you can figure out from the table below.

B. Arithmetic equations are made of variables, literals and -- operators

You always need operators to compute. +, -, * are straight forward. But why 1729/10 = 172? what is 1729%10? See the table below:

C. Try:

Explain why 1729%10 is9, why 1729/10 is 172. In genheral, how can you get each digit of any integer? Explain.

If you write n%10, it will always print out the last digit of the variable, or n. If you write n/10, it will print out n without the last digit.