Effect of type on arithmetic results

The code in Listing 4 illustrates the effect of the type of operands on the result of arithmetic operations.

The output produced by the code in Listing 4 is shown in Figure 2.

Types of arithmetic
  Float:   10.0/3.0 = 3.33333
  Mixed:   10.0/3 = 3.33333
  Integer: 10/3 = 3
  
Figure 2