fork download
  1. program pogramsommafor;
  2. var n,i,s:integer;
  3. t:array [1..10]of integer;
  4. begin
  5. (* your code goes here *)
  6. read(n);
  7. for i:=1 to n do
  8. s:=s+i;
  9. write(s)
  10. end.
Success #stdin #stdout 0s 280KB
stdin
700
stdout
-16794