1Use meaningful names for cariables.
2Be sure to check that variables are declared to be of the correct type.
3Be sure that variables are initialized before the program attempts to use their value .This can be done when the cariable is declared or with an assignment statemnet before the variable is first used.
4.Always include a prompt line in a program whenever the user is explected to enter data from the keyboard ,and always echo the user's input.
5.Boolean expressions are evaluated similar to the way arithmetic expressions are evaluated.
6Most modern compilers have a bool type having the values true and false.
7The C++ branching statements are the if-else statement and the switch statement.
8The C++ loop statements are the while ,do-while,and for statements.
9A loop can be ended early with a break statement .A single iteration of a loop body may be ended early with a continue statement.