===== PascalABC.NET =====
begin
var (s, p) := (0, BigInteger.One);
for var i := 1 to ReadInteger('N=') do
(s, p) := (s + i, p * i);
Println('Сумма', s);
Println('Произведение', p)
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
===== PascalABC.NET =====
begin
var (s, p) := (0, BigInteger.One);
for var i := 1 to ReadInteger('N=') do
(s, p) := (s + i, p * i);
Println('Сумма', s);
Println('Произведение', p)
end.