Scripting >> Examples >> Python-Perl-Powershell-Bash-Windows Batch >> Example 002 - Perform simple while loop with a loop iteration counter


 To perform an iteration until a loop counter reaches a certain number

 

 

 

 

 

 

 

 

 

 

 

 

## NOTES:
## 1. Windows batch does not have a native "while" implementation, it is simulated here with an IF and GOTO statements
##
## END ##

 

Sample output - Python

Sample output - Perl

 

 

Sample output - Powershell

Sample output - Bash

Sample output - Windows batch