Computer Science, asked by skirfanali25012005, 1 month ago

Write down the output of the program.

FOR I = 1 TO 5
FOR J= 1 TO 2
PRINT I*J;
NEXT J
END​

Answers

Answered by favchoice313
0

Explanation:

Decide the number of rows and columns

There is a typical structure to print any pattern, i.e., the number of rows and columns. We need to use two loops to print any pattern, i.e., use nested loops. The outer loop tells us the number of rows, and the inner loop tells us the column needed to print the pattern. Accept the number of rows from a user using the input() function to decide the size of a pattern.

Similar questions