SOURCE FILE: ex0501.cpp


// Example 5.1.  Program using floating point numbers   
   
#include <iostream.h>
   
int main(void)   
{   
   float operand1 = 246.8,  // first operand 
         operand2 = 135.79; // second operand 
   
   cout << operand1 <<  " + "  << operand2 << " = " 
        << operand1 + operand2 << endl;
   
   cout << operand1 <<  " - "  << operand2 << " = " 
        << operand1 - operand2 << endl;
   
   cout << operand1 <<  " * "  << operand2 << " = " 
        << operand1 * operand2 << endl;
   
   cout << operand1 <<  " / "  << operand2 << " = " 
        << operand1 / operand2 << endl;

   return 0;
}