03/09/06 20:55
benigno41
program prova;
Uses newdelay,crt;
var a:string[40];
begin clrscr;
writeln ('come ti chiami?');
readln (a);
textcolor (2);
if a ='dario' then writeln ('Giusto!) else
begin
textcolor (4);
writeln ('Sbagliato!');
end;readln;end.
-------------
questo è un programma fatto da me ma come mai nn posso fare
Program prova;
Uses newdelay,crt;
var a,x:string[40];
begin
clrscr;
repeat
writeln ('Come ti chiami?');
readln (a);
textcolor (2);
if a='Dario ' then writeln ('Giusto!') else
begin textcolor (4);
writeln ('sbagliato!');
end;
readln(x);
until x=0
end.
-------------------
Mi da"Error 26: Type mismatch.
Ho capito ke il prob è causato da repeat ed until....ke devo fare?...
Come faccio a fare ripetere la domanda=?
Uses newdelay,crt;
var a:string[40];
begin clrscr;
writeln ('come ti chiami?');
readln (a);
textcolor (2);
if a ='dario' then writeln ('Giusto!) else
begin
textcolor (4);
writeln ('Sbagliato!');
end;readln;end.
-------------
questo è un programma fatto da me ma come mai nn posso fare
Program prova;
Uses newdelay,crt;
var a,x:string[40];
begin
clrscr;
repeat
writeln ('Come ti chiami?');
readln (a);
textcolor (2);
if a='Dario ' then writeln ('Giusto!') else
begin textcolor (4);
writeln ('sbagliato!');
end;
readln(x);
until x=0
end.
-------------------
Mi da"Error 26: Type mismatch.
Ho capito ke il prob è causato da repeat ed until....ke devo fare?...
Come faccio a fare ripetere la domanda=?
aaa