|
|
back to boardDiscussion of Problem 1068. Sumplease help me (problem 1068, wrong answer) I don't know why Posted by Fellix 26 Oct 2002 17:31 var a, k, b: integer; begin readln (a); if a>=0 then for k:=1 to a do b:=b+k else for k:=1 downto a do b:=b+k; writeln (b); end. |
|
|