what are the rules for writing an algorithm
Answers
Answer:
hope that the above attachment helps u dear❤️
Answer:
When we are going to create algorithms, the following points must be kept in mind:
Input: There should be some inputs that can be applied to the algorithm.
Output: At least one result is to be produced.
Definiteness: Each step must be unambiguous.
Finiteness: If we trace the steps of an algorithm, then for all cases, the algorithm must terminate after a finite number of steps.
Effectiveness: Each step must be sufficiently basic that a person using only paper and pencil can in principle carry it out. In addition, not only each step is definite, but it must also be feasible.
Comment Session: Comment is additional info of the program for easy modification. In the algorithm, the comment would appear between two square brackets []. For example: [ this is a comment of an algorithm ].