CoolOne with Powershell
Yesterday there was question in KBC , English version[Original] Who wants to be Millionaire, how many 9's are there from 1 to 100. Before they could answer I answered it quickly with Powershell. This is how
(1..100 where{$_ -like "*9*}).count
1 comment:
LOL, you typed it so fast, you had two typos ( a | and a ")! But a cool post nonetheless. :)
(1..100 | where {$_ -like "*9*"}).count
Post a Comment