@echo off:codeset /p "numero=Numero : "if not defined numero (goto:code)set /a "factorial=1"for /l %%_ in (1 1 %numero%) do (set /a factorial=factorial * %%_)echo.Factorial : %factorial%pause>nulexit /b 0
Numero : 4Factorial : 24
(( 1 / 0 )) &> /dev/null || { echo -e "stderrrrrrrrrrrrrrrrrrr";}