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