Tell me, please, why in variable mode in Pascal the variable is not displayed when I write outtextxy(x,y,p[i]); while p is an integer array.
Update
What am I doing wrong, tell me, please. With this code, only the last element is output, i.e. when i=k :
uses crt,graph; var k,i,m,dr,md:integer; pr,par:string; p:array[1..100] of real; BEGIN readln(k); for i:=1 to k do readln(p[i]); initgraph(dr,md,' '); for i:=1 to k do str(p[i],pr); for i:=1 to k do begin str(i,par); setcolor(i); outtextxy(100+80*(i-1),430,pr[i]); outtextxy(100+80*(i-1),440,par[i]); readln; end; END.