Created
October 25, 2021 20:38
-
-
Save felickz/fec0eeb4bcf844f53ca2abfe556075b8 to your computer and use it in GitHub Desktop.
Write script that prints out odd numbers between 1 and 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1..10 | %{ $_ % 2 -eq 0 ? $null : (Write-Host "$_") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment