>>468
{
int x, y, pos;
printf("Input x : ");
scanf("%d", &x);
printf("Input y : ");
scanf("%d", &y);
pos=(y * wid + x) * bnd;
if(bnd==3) printf("(R,G,B)=(%d,%d,%d)\n", img[pos], img[pos+1], img[pos+2]);
if(bnd==1) printf("(R,G,B)=(%d,%d,%d)\n", img[pos], img[pos], img[pos]);
}