Write an algorithm to calculate table of 5
Answers
Answered by
3
The Algorithm to this question can be defined as follows:
Step 1: Start the process.
Step 2: defining an integer variables n,i and j. Assign value in variable n that is equal to 5.
Step 3: use For loop that starts from i=1 to 10.
Step 4: Print j = n * i
Step 5: End For loop.
Step 6: Stop the process.
Explanation:
Step by step execution of any task is known as an algorithm and the description of the above algorithm can be given as:
- In step 1 first, Start the process.
- In step 2 we defined three variables and assign a value i.e., 5.
- In step 3 we declared a loop that uses the variable "i", which starts from 1 and ends with 10.
- In step 4 we print values of variable j.
- In step 5 end of the loop.
- In step end of the process.
Learn more:
- Algorithm to print table: https://brainly.in/question/1664711
- What is an Algorithm: https://brainly.in/question/2644446
Similar questions
Social Sciences,
5 months ago
Math,
5 months ago
World Languages,
5 months ago
Hindi,
11 months ago
English,
11 months ago
Physics,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago