#define SIZE 3
#include
#include
#include
void main()
{
int c[SIZE][SIZE],i,j,p,pmax,jmax,temp;
clrscr();
for (i=0;ifor (j=0;j{
scanf("%i",&c[i][j]);
}
pmax=0;
for (j=0;j{p=1;
for (i=0;ip=p*c[i][j];
if (p>pmax)
{pmax=p;
jmax=j;
}}
for (i=0;i{temp=c[i][0];
c[i][0]=c[i][jmax];
c[i][jmax]=temp;}
for (i=0;i{for (j=0;jprintf("%4i",c[i][j]);
printf("\n");}
getch();
}