Hey everyone,
I am having some issues on how to manipulate variables in a for loop that I am sending to a jar file... any suggestions would be appreciated. The code runs, but the math doesnt..
whenever I output those two parameters, they just output the original value of 1000
I am having some issues on how to manipulate variables in a for loop that I am sending to a jar file... any suggestions would be appreciated. The code runs, but the math doesnt..
@echo off echo Welcome, this will run Lab1.jar :: Set the amount of times to run from user input set /P numToRun= Please enter how many times to run the program: set /a numParam = 1000 set /a strParam = 1000 :: Start looping here while increasing the jar pars :: Loop from 0 to numToRun for /L %%i in (1 1 %numToRun%) do ( set /a numParam = %numParam% * 10 set /a strParam = %strParam% * 10 java -jar Lab1.jar %numParam% %strParam% :: The two lines below are used for testing echo %numParam% echo %strParam% ) @echo on
whenever I output those two parameters, they just output the original value of 1000