Ребят, перевидите на C++ пожалуйста. n,n1,i,j:integer; s,k,c:int64; begin readln(n); s:=0; for i:=1 to n do begin read(n1); c:=1; k:=0; for j:=2 to n1 do begin k:=k+c; inc(c); end; s:=s+k; end; writeln(s); readln; readln; end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.