Skip to content

Instantly share code, notes, and snippets.

@Agazoth
Created June 3, 2020 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Agazoth/ff75416916e659c40d3d8606804d6957 to your computer and use it in GitHub Desktop.
Save Agazoth/ff75416916e659c40d3d8606804d6957 to your computer and use it in GitHub Desktop.
$c=1
1..20|%{Write-Host $c
$i=0
$a=@($c[0])
while($i -lt $_){$a+=($c[$i]+$c[++$i])}
$c=$a}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment