Chemistry, asked by snehamallireddy, 3 months ago

16(B); write a program and algorithm to display the partern of rectangle or hallow?​

Answers

Answered by gamerleon899
1

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