Good afternoon. I was doing a very simple programming, in general, simply serves to put the numbers that the user put (10 numbers) in ascending order, however something strange happens already in that 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 an echo at the beginning of the cycle, it says that the values NM9 and NM10 are "1". Can you find the problem? I suspect it's the "VAR" part, or maybe some problem in assembling the lines. Thank you.