Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Plastic programming
Plastic programming
# contains "stdio.h"

int main(int argc,char *argv[]){

int a[4][5],I,j,x;

Printf ("Please specify an initial value ... \ n");

for(I = 0; I<4; i++)

for(j = 0; j & lt5; scanf("%d ",a[I]+j++);

Printf ("Please enter a number to find x ... \ nx =");

scanf("%d ",& ampx);

for(I = 0; I<4; i++){

for(j = 0; j & lt5; j++)

if(x==a[i][j]){

Printf("%d is located in [%d][%d]. \n”,x,I,j);

Break;

}

if(j & lt; 5)

Break;

}

If (i>3)

Printf ("Find fault ... \ n");

Returns 0;

}

Code format and running sample picture: