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