Anyone know much about assembly code? I need to write a program to do this:
main () {
int c[5], a;
for (a=0; a<5; a++) {
if (a==0) {
c[a] = 3;
} else if (a > 3) {
c[a] = a / 2;
} else {
c[a] = a * 4;
}
}
but I'm painfully lost. I'll post my attempt in a comment.