How do I raise a number x to the power y in MARIE?
问题 I'm trying to create a MARIE program that raises a number (x) to a power (y) and provides an output. I have tried many alterations of the idea I have in mind but I am still facing errors. The code below is the closest I have gotten to solving this problem INPUT STORE X STORE XNUM INPUT STORE Y MULTIPLIERA,LOAD PROD ADD X STORE PROD LOAD XNUM SUBT ONE STORE XNUM SKIPCOND 400 JUMP MULTIPLIERA JUMP NEWPRODUCT NEWPRODUCT, LOAD X STORE XNUM LOAD PROD STORE X LOAD Y SUBT ONE STORE Y SKIPCOND 400