SOURCE FILE: ex0514.cpp


// Example 5.14. Illustration of mixed-mode expressions   
    
#include <iostream.h>
   
int main(void)   
{   
   int   intVar = 2;         // integer operand 
   float floatVar = 12.34,   // float operand 
         floatAnswer;        // float answer 
   
   floatAnswer = intVar * floatVar;   
   cout << intVar << " * " << floatVar << " = " << floatAnswer << endl;
   
   floatAnswer = intVar / 3 * floatVar;    
   cout << intVar << " / 3 * " << floatVar << " = " << floatAnswer << endl;

   return 0;
}