/*
    numeric.c program to illustrate declaration and definition of numerical types.

    printf uses format specifies to print. %d is an integer, %f is a floating point value.

    string and bool does not exist in C, but char[..] does.


*/

#include <stdio.h>

int main()
{                                                                // program starts here
   int number;
   int counter;
   int LifeTheUniverseAndEverything=42;
   counter=81;                                                   // Note that number is declared, but not defined  
   double x,y;
   double pi=3.14159265;
   y=1;                                                          // Note that x is declared, but not defined


   printf("number=%d\n",  number);                               // Dangerous! undefined value
   printf("counter=%d\n", counter);
   printf("Life..=%d\n",  LifeTheUniverseAndEverything);
   printf("pi=%f\n",      pi);
   printf("x=%f\n",       x);                                    // Dangerous! undefined value
   printf("y=%f\n",       y);

   return 0;
}                                                                // program ends here
