-1
I made this algorithm but it does not run, an error appears, "This is not expected":
Program valormaior_oumenor ;
var
valornicial, valorfinal:integer;
Begin
writeln('Digite um valor ');
read(valorinicial);
writeln('Digite outro valor ');
read(valorfinal);
if (valorinicial>valorfinal) then
while (valorinicial>=valorfinal) do
writeln('valorinicial')
valorinicial:=valorinicial+1
else
while (valorinicial<=valorfinnal) do
writeln(valorfinal)
valorfinal:=valorinicial-1
End.
I can’t understand anything!
– Rogerio Pavan da Silva
already checked if not missing a
being
,end
or simply a;
?– Ricardo Pontual