REPEAT <n> TIMES
{
<block of statements>
}
PROCEDURE main()
{
DISPLAY("Enter a number: ")
x <- NUMBER(INPUT())
DISPLAY("Enter a number: ")
y <- NUMBER(INPUT())
z <- 1
REPEAT y TIMES
{
z < z * x
}
DISPLAY(x " to the power of " y " = " z)
}
main()