How to write a program First understand the concept clearly then only start to code, unless your efforts will be of no use. When you code, you should mean it. Writing a program is not only about getting the output, you should keep in mind the following things too 1. How efficiently we are using the memory 2. How fast your program runs What an interviewer or company wants from you 3. Wether your program is clear and easy to understand or not. I. Use the variable names that relate to their usage Example : If I want to store student marks int studentmarks; int n; In the above two declarations variable studentmarks is most easy to understand than declaring variable as n II. Follow indentation while writing the code. Example for(int i=0; i<n; i++) { System.out.println("value in outer loop is "+i); for(int j= 0; j< n; j++) { System.out.println("value in inner loop is"+j); } } Which statements belongs to which blockš¤ Follow in...