C Program To Print Matrix using Nested For Loop

preview_player
Показать описание

Lets write a simple C program to print/display a 3x5 matrix using nested for loop.

Note:
3x5 matrix means, a Matrix with 3 rows and 5 columns.

Logic To Print Matrix using Nested For Loop
Outer for loop selects the rows. Inner for loop prints elements of that row. Next outer for loop selects the next row, and the inner for loop prints elements for that selected row. This continues until all the elements of the Matrix are printed.

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

Sir, This is nice. Then how to fill continuous natural numbers, i.e., 1 to 15 in this way. Can you explain.20-09-21.

karunanithir
Автор

Bro U r just writing the program n getting a out

kartikhosamani