206k views
4 votes
write a pseudo code and flow chart that take a number as input and prints multiplication table up to 10

User Swizzard
by
8.0k points

1 Answer

6 votes

PSEUDOCODE:

1. DECLARE number: INTEGER

2. DECLARE multiple: INTEGER

3. INPUT number

4. FOR counter FROM 1 TO 10 DO

5. multiple <-- number * counter

6. PRINT number, " * ", counter, " = ", multiple

7. ENDFOR


1. declaring a variable "number" as an Integer

2. declaring a variable "multiple" as an Integer

3. The user inputs the value of number

4. FOR loop where variable "counter" increments by 1 after every iteration

5. sets the value for variable "multiple" as the value of number * counter

6. prints out for example "3 * 1 = 3" and will continue till counter reaches 10

7. Ends the for loop

FLOWCHART below

hope it helped

write a pseudo code and flow chart that take a number as input and prints multiplication-example-1
User Driax
by
8.3k points