Follow the rules:

  • Save your files with the names given in the tasks (e.g. task-04.pas).
  • Give meaningfull names to your variables.
  • Use comments to make the program clear.
  • Use comments before the program code with a text of the task. For comments use curly brackets: 
1
  • Use comments after the program code with a text of 2-3 logs of the results (outputs). It’s easy to do just by copying. Use curly brackets to add comments :
1
  • Add  ouput text to make the program clear for user. Let's consider the following problem: 

   [task-004.pas] Calculate hypotenuse  and perimeter of a right-angled triangle, legs of triangle is given (root of (a2 + b2)) .

Here is an example of right program which is clear for user:

1

Possible result:

Input the values of triangle legs:
3
6
hypotenuse = 6.70820393249937
perimeter = 15.7082039324994