|
|
back to boardDiscussion of Problem 1068. SumPlease, help... Wrong answear... That's my answear(1068): var s,a,i:integer; begin read(a); s:=0; for i:=a to 1 do s:=s+i; for i:=1 to a do s:=s+i; write(s); end. What is wrong??? I think it's true... Re: Please, help... Wrong answear... try a = 1; :) Happy New Year !!! Re: Please, help... Wrong answear... My program looks the same and I got WA too but I used IF and ELSE and your cycle works twice thats why it is wrong! Edited by author 08.02.2008 22:41 Edited by author 08.02.2008 22:41 Edited by author 08.02.2008 22:41 |
|
|