|
|
back to boardWhat's wrong?(pascal) Posted by Jumbo 19 Mar 2011 23:52 var n,a,i,x,k:integer; begin readln(n); for i:=1 to n do begin readln(a); x:=1; k:=1; repeat x:=x+k; k:=k+1; until a-x<=0; if a=x then write('1',' ') else write('0',' '); end; end. Re: What's wrong?(pascal) Edited by author 01.07.2011 16:46 |
|
|