9951 explained code solutions for 126 technologies


powershellHow to retrieve numbers divisible by 10 from a list of values


1..100 | Where-Object{$_ % 10 -eq 0}ctrl + c
1..100

create a numeric sequence from 1 to 100

Where-Object

filter list of enumerated data based on a condition

{$_ % 10 -eq 0}

retrieves the $_ iterator object for the list of numeric values such that value modulo % 10 equals to zero