> How do you does this because I was completely lost learning this?

How do you does this because I was completely lost learning this?

Posted at: 2014-12-18 
ranslate 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;

}

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;

}