#include<stdio.h>
#include<conio.h>
void main()
{int i,j,a[2][4];
printf("enter 8 value");
for(i=0;i<=1;i++)
{for (j=0;j<=3;j++)
scanf("%d",&a[i][j]);
}
printf("entered value are \n");
for(i=0;i<=1;i++)
{for(j=0;j<=3;j++)
printf("\t%d",a[i][j]);
printf("\n");
}
getch();
}
#include<conio.h>
void main()
{int i,j,a[2][4];
printf("enter 8 value");
for(i=0;i<=1;i++)
{for (j=0;j<=3;j++)
scanf("%d",&a[i][j]);
}
printf("entered value are \n");
for(i=0;i<=1;i++)
{for(j=0;j<=3;j++)
printf("\t%d",a[i][j]);
printf("\n");
}
getch();
}
output
1 2 3 4
5 6 7 8
No comments:
Post a Comment