/*
   Print program to illustrate how printf works
   printf uses format specifies to print. %d is an integer, %f is a floating point value.
*/

#include <stdio.h>           // Include printf

int main()               
{                                      // First line of program
   printf("Hello world");              // Print the string
   printf("Again hello world");        // Print the string   
   printf("\n");                       // Print a line shift
   
   printf("Number=%d", 42  );          // Print string, integer, string

   printf("pi=%f\n",  3.14159 );       // Print string, decimal, string

   printf("2+2=%d\n", 2+2 );           // Make calculation in stream

   return 0;
}                                      // Last line of the program
