/******************************* TYPECAST.CPP *********************************
* Example showing type conversion                                  1998-10-01 *
*                                                                   Agner Fog *
*                                                                             *
*                                                                             *
******************************************************************************/
#include <iostream.h>
#include <conio.h>

void main ()
{
   int a, b;  float quotient;
   cout << "\nEnter a ";
   cin >> a;
   cout << "\nEnter b ";
   cin >> b;

   // make floating point division to get decimals:
   quotient = (float)a / (float)b;

   // output result
   cout << "\n a/b = " << quotient;

   // wait for key pressure
   getch();
}
