0
Good afternoon. I was doing a very simple programming, in general, serves simply to put the numbers that the user put (10 numbers) in ascending order, but something strange happens already in this part
set /p NM9=
set /p NM10=
:CICLO
if %NM10% EQU %NM9% (
goto IGUAL1
)
if %NM10% LEQ %NM9% (
set /a VAR=%NM9%
set /a NM9=%NM10%
set /a NM10=%VAR%
)
After giving an echo at the beginning of the cycle, it says that the NM9 and NM10 values are "1". Can you find the problem? I suspect it is the "VAR" part, or maybe some problem in the assembly of the lines. Thank you.
Put the whole code ... the only problem that has this code is that if NM10 equals NM9, it will not find the IGUAL1 label, because you did not create it.
– user82136
Cristian I put as an answer to my question the whole code.
– Darius da costa