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
Social Sciences,
3 months ago
Music,
3 months ago
Social Sciences,
3 months ago
Computer Science,
11 months ago
Math,
11 months ago