Tips
Use descriptive names for variables
Indent the code for better readability and understanding
Use parenthesis for clarity and to force the order of evaluation in an expression
Reuse the variables for better usage of memory
Take care of division by zero
Analyze the problem properly, and then start coding (i.e. first think and then write)
Previous
TOC