//This code computes x raised to the power of y //-------------------------- //the parameters of the code //they must be positive x = 3; y = 4; //----------------- //the actual code result = 1; i = 0; //multiply x with itself y times while i < y do result = result * x; i = i + 1; endwhile //print the result print "The power of "; print x; print " to "; print y; print " is: "; print result; print newline;