Computer Science, asked by shaikaftab0701, 8 months ago

Write a python program to print pattern square and rectangle using nested for Loop.
Someone Please Help

Answers

Answered by CEOSanjay
0

Answer:

Input number of rows and columns.

For rows of rectangle run the outer loop from 1 to rows. for (i = 1; i < = rows; i++)

For column of rectangle run the inner loop from 1 to columns. for (j = 1; j < = columns; j++) ...

After printing all columns of a row, print new line after inner loop.

Similar questions
Math, 1 year ago