var n; var p; var s = 0; write("Enter n: "); n = read(); for (var i=1; i<=n; i++) { p = 1; for (var k=1; k<=i; k++) { p = p * i; } s = s + p; } write("s = " + s);
(
)
{
}
[
]
"
;
=
+
-
*
!
/
%
&
|