5 × 5 Number Matrix

 #include<stdio.h>

int main()

{

    int rows=5, cols=5, rowno, colno;


    for(rowno=1; rowno<=rows; rowno++)

    {

        printf("\nRow No %d-  ",rowno);

        for(colno=1; colno<=cols; colno++)

        {

            printf("%d",colno);

        }

    }

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices