This is very simple in order to avoid run time error . Firstly when u start writing the program make it neat and clean mean's keep gap b\w the command you write or the Comment u give.
Secondly , remember to make proper opening and closing braces . Because most of the time error is their not teminated correctly and such like this.
Give Time when writing a program as many people write the program quick and when get error they are annoyed so be calm and slow
lastly one thing when going to write the program first write it on the paper first to get a rough idea what are u going to make .
Don't just start writeing any thing because it can lead to unexpected error and u will be annoyed.
so next time u write a program keep in mind the above thing and u will surely get very less or no error at all
Secondly , remember to make proper opening and closing braces . Because most of the time error is their not teminated correctly and such like this.
Give Time when writing a program as many people write the program quick and when get error they are annoyed so be calm and slow
lastly one thing when going to write the program first write it on the paper first to get a rough idea what are u going to make .
Don't just start writeing any thing because it can lead to unexpected error and u will be annoyed.
so next time u write a program keep in mind the above thing and u will surely get very less or no error at all