echo off set pom=1 :pocatek set /a vysled=pom*2 echo 2*%pom%=%vysled% set /a pom=pom+1 if %pom% GTR 10 goto konec goto pocatek :konec echo konec