begin
var a := ReadSeqIntegerWhile(x -> x <> 0).ToArray;
a.Where((el, ind)-> ind mod 3 = 0).Sum.Println;
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
begin
var a := ReadSeqIntegerWhile(x -> x <> 0).ToArray;
a.Where((el, ind)-> ind mod 3 = 0).Sum.Println;
end.