explanation of code

0 pts ended
It has been awhile since I have read code. I need totranslate this to assembly, but it does not make sense tome. Can you explain this? This looks like C and I onlyknow JAVA.

Since x is greater than 1 we enter the loop and y = 20. Thenx = 0. Then Endif ends the If statement. But, if x wasless than 1 we would skip if statement and Y = Y + 1. Is thatcorrect?

If X > 1 then
     Y = X + X;
     X = 0;
     Y = Y + 1;

You may initialize X to 10 and Y to 0.

Answers (3)

  • Anonymous

    View this solution... try Chegg Study


    Start Your Free Trial