#include<stdio.h>
#include<conio.h>
void input(int mat[5][5],int m,int n);
void display(int mat[5][5],int m,int n);
void main()
{
int mat[5][5],row,col;
printf("Enter the no. of row and columns=");
scanf("%d%d",&row,&col);
input(mat,row,col);
printf("\nThe matrix is=\n");
display(mat,row,col);
getch();
}
void input(int mat[5][5],int row,int col)
{
int i,j;
for(i=0;i<row;i++)
{
for(j=0;j<col;j++)
{
printf("\nEnter[%d][%d] element=",i,j);
scanf("%d",&mat[i][j]);
}

}
}
void display(int mat[5][5],int row,int col)
{
int i,j;
for(i=0;i<row;i++)
{
for(j=0;j<col;j++)
{
printf("%d",mat[i][j]);
}
printf("\n");
}
}




WE ALSO PROVIDE THE ON DEMAND PROJECTS EITHER THEY ARE DOMESTIC, COLLEGE PROJECTS, OR COMMERCIAL PROJECTS. YOU WILL GET THE PROJECT COMPLETELY ACCORDING TO YOUR REQUIREMENTS. CONTACT US AT :- knowledgeforyou2022@gmail.com

Leave a Reply

Your email address will not be published.