Write a python program to print pattern square and rectangle using nested for Loop.
Someone Please Help
Answers
Answered by
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
History,
4 months ago
Math,
4 months ago
Environmental Sciences,
4 months ago
Computer Science,
1 year ago
Math,
1 year ago