var base; var exponent; var power = 1; write("Enter the base number: "); base = read(); write("Enter the exponent number: "); exponent = read(); for (var i=1; i<=exponent; i++) { power = power * base; } write(base + "^" + exponent + " = " + power);
(
)
{
}
[
]
"
;
=
+
-
*
!
/
%
&
|