208k views
1 vote
The following algorithm should output the t times table in the format:

1 x 8 = 8
2 x 8 = 16
3 x 8 = 24 … (up to 12x)
Correct errors in the pseudocode and complete the output statement.
t = INT(INPUT(“Enter the times table you want to output:”))
FOR x = 1 TO 12
p = t * t output statement using p needed here
NEXT x
PRINT( )

User Rubi
by
8.2k points

1 Answer

4 votes

t = INT(INPUT(“Enter the times table you want to output:”))

FOR x = 1 TO 12

p = t * x

PRINT ( x + " × " + t + " = " + p)

NEXT x

User Mangokun
by
8.8k points