DFS :: MATRIX

#include<stdio.h>
#include<conio.h>

/*
1   2   3
4   5   6
7   8   9
*/

void main()
{
int a[3][3],i,j;
clrscr();

for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf(“Enter the value: “);
scanf(“%d”,&a[i][j]);
}
}

for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf(“%d “,a[i][j]);
}
printf(“\n”);
}

getch();
}

Share

About the Author

Akash Padhiyar

Visit Website

There are no comments yet, add one below.

Leave a Comment

Your email address will not be published. Required fields are marked *

*

Time limit is exhausted. Please reload CAPTCHA.