int x[10];
int y[10];
int z[10];
for (int i=10; i<0;i--)
{
if (x[i]>y[i]) z[i]=1;
else z[i]=0;
}
The fourth line of your code should read:
for (int i=10; i>0;i--)
//Should be i>0 (greater than zero), you need to change this.
translate the following program to MIPS code
int x[10];
int y[10];
int z[10];
for (int i=10; i<0;i--)
{
if (x[i]>y[i]) z[i]=1;
else z[i]=0;
}