How do you change below c code to MIPS?

int my number [10];
void fun(int input, int* addr){
    if (input %2 == 0){
        *addr = 1;
    }
}

int main (){
    int i;
    for (i = 0; i < 10; i+=1){
        fun(number[i], &number[i]);
    }
    return 0;
}