טוב די....אני מנסה את מזלי וכותב
תוכנית:
Function Nice_Num (num:integer):boolean; var flg:boolean; st,st2:string; i,count,x:integer; begin count:=1; flg:=true; str(num,st); {מקווה שהתחביר נכון- ואם לא- אני הופך הכל למחרוזת} x:=pos('.',st); st2:=copy(st,1,x-1); delete(st,1,x); if length(st)<>length(st2) then flg:=false else for i:=length(st) downto 1 do begin if st<>st2[count] then flg:=false; count:=count+1; end; Nice_Num:=flg; End;