/*
    Types.cpp program to illustrate declaration and definition of numerical types.

    See Nyhoff Chapter 3.
*/

#include <iostream>
using namespace std;

int main()
{                                                                // program starts here

   int number;                                                   // now compiler knows number is an integer
   int counter;                                                  // similar counter, but their value is undefined
   counter=81;                                                   // Note that number is declared, but not defined  
   int LifeTheUniverseAndEverything=42;                          // define variable with value.

   double x,y;
   double pi=3.14159265;
   y=1;                                                          // Note that x is declared, but not defined

   cout << "number="  << number                       << endl;   // Dangerous! undefined value
   cout << "counter=" << counter                      << endl;
   cout << "Life..="  << LifeTheUniverseAndEverything << endl;
   cout << "pi="      << pi                           << endl;
   cout << "x="       << x                            << endl;   // Dangerous! undefined value
   cout << "y="       << y                            << endl;

   return 0;
}                                                                // program ends here
