Computer Science, asked by amangaur7268, 1 year ago

Algorithm to print multiplication table of a given number ?

Answers

Answered by ayeshashakil07
0

Answer:

step 1: read number

step 2: count = 1;

step 3: if count <=10

                    continue

           else

                    stop

step 4: table = number *count

step 5: Print table

step 6: count = count+1, Go to step 3.

Explanation:

let asume table of 5 ---- 5 10 15 20 25 so on..

step 1 insert number i.e., 5

step 3 used for loop from 1 to 10;

step 4 calculate the table by multiplying the number with count

like - 5* 1

        5*2

        5*3 and so on.. till 5*10

step 5 will print the table 5

                                         10

                                         15 and so on till 50.

step 6 increase the count and again go to step 3 to check the condition.

if count will become 11 then it will stop.

Hope you will understand. If you feel any difficulty in understanding let me know.

Thank you

Similar questions