Hello guys, who knows me explain why this code does not work?! I would then take an input from the keyboard but does not work! fill would print the message but does not read keyboard input. Why?
Program Prova;
Uses Crt,Graph;
Var Gd,Gm:integer;
Scelta:char;
Begin
Gd:=detect;
Initgraph(Gd,Gm,'C:\FPC');
Rectangle(0,0,766,1365);
SetfillStyle(1,11);
Floodfill(1,1,11);
Outtextxy(0,40,'Prova!!!');
Outtextxy(0,50,'Questa serve per testare una struttura If...then semplice');
Outtextxy(0,60,'Premi A');
Read(Scelta);
If (Scelta='a') then Outtextxy(0,80,'GIUSTO!') else OuttextXy(0,80,'SBAGLIATO!');
Readkey;
end.