If your Windows system does not have a bash shell, you will have to use a batch (.bat) file.
Here is a batch file that you can copy into your editor and save as script1.bat.
@echo OFF go build program3.go for /L %%j in (3, 1, 5) do ( for /L %%i in (2, 1, 4) do ( program3 %%i %%j ) )
- Here (3, 1, 5) means “from 3 to 5 in increments of 1.”
- /L means loop through the list of numbers specified.
- %%x means means a variable x.
- You can execute this file in a cmd or command window as follows:
script1.bat