Search for question
Question

For 4-5, convert the C code to equivalent MARIE code. To reference numbers like 1 (for instance

when doing count++), you can either use #1 or assume 1 is stored in the variable one.

4. x=0;

&y);

scanf("%d",

for (i=0; i

}

scanf("%d", &z);

if (y!=z) x++;

x);

printf("%d",

// get value y from the user

// loop n times (assume n was input previously)

// for each iteration, get z

// if y!=z count it

// output the count

Fig: 1