allora… per poter ovviare a questo ho messo un altro ciclo repeat (nidificato), in quanto diversamente non raggiungevo alcun risultato. Cosa ne pensi??
- Code: Select all
repeat
writeln('inserisci un numero');
readln(a);
if a<0 then
begin
writeln('il numero e'' negativo. vuoi ripetere il processo?');
writeln;
repeat
writeln('premi s o n');
readln(ris);
until
(ris='s') or (ris='n');
if ris='s' then
writeln('ricomincia');
writeln;
end;
until
(ris='n');
write('premi un tasto per concludere ciao');
readln




