Basic rules of C++ program:
· It must have only one main function
· If the main function has return type it must have return value
· Statement must end with semicolon
· To comment one line use //
· To comment more than one line start /* and end with */
· The primary variables are declared like C variables.
· The variables must be separated individually in cin >> and cout << Input and
Output can be managed using I/O console functions.
· cin can read only words without blank space in string.