Answer:

Square inches =      144

Several Operators in a Row

Sometimes you want more than one arithmetic operator in the same statement. For example, here is a program to calculate the number of fluid ounces in a gallon:

' Number of fluid oz. in a gal.
'
' There are 16 oz. per pint
' There are 2 pints per quart
' There are 4 quarts per gal.
'
PRINT "Fluid ounces = ", 16 * 2 * 4
END

When you see two or more of the same operator, start at the left and do them one at a time:

16 * 2 * 4   32 * 4   128
------    
   do first    

Often it makes no difference in what order you do the arithmetic when all operators are the same. In more complicated floating point arithmetic it sometimes makes a difference.

QUESTION 22:

Write a program that calculates the number of Winter days in a year.