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