English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1-->2-->3
8-->9 4
7<--6<--5

2006-11-28 02:25:12 · 1 answers · asked by AMAZING COUNCILLOR 1 in Computers & Internet Programming & Design

1 answers

int main() {
int m[4][4];

printf("\n Enter the values of the first row : ");
for(int j=1;j<=3;j++)
scanf("%d ",&m[1][j]) ;

printf("\n m[2][1]=");
scanf("%d",&m[2][1]);

printf("\n m[2][2]=");
scanf("%d",&m[2][2]);

printf("\n m[2][3]=");
scanf("%d",&m[2][3]);

printf("\n Enter the values of the third row : ");

for(int j=3; j>0; j--)
scanf("%d ",&m[3][j]) ;
return 0;
}



P.S: rewrite it using the first zero index

2006-11-28 02:43:56 · answer #1 · answered by iyiogrenci 6 · 0 0

fedest.com, questions and answers