PoshCode Archive  Artifact [e48147043c]

Artifact e48147043c3bdec95d12aac799dbe3d046b861afd5ab5164d8486ec46e2b7e8a:

  • File Can-someone-explain-to-me-.ps1 — part of check-in [4c1bd06f64] at 2018-06-10 14:01:14 on branch trunk — Can someone explain to me what the following code is used to do? And how many it will produce? and How would the output be used? (user: unknown size: 571)

# encoding: ascii
# api: powershell
# title: 
# description: Can someone explain to me what the following code is used to do? And how many it will produce? and How would the output be used?
# version: 0.1
# license: CC0
# x-poshcode-id: 5779
# x-archived: 2016-03-22T05:31:43
#
#
$chars = "b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z" 

foreach($char1 in $chars){ 
foreach($char2 in $chars){ 
foreach($char3 in $chars){ 
foreach($char4 in $chars){ 
$pw = $char1+$char2+$char3+$char4 
write-host $pw 
} 
} 
}	
}