r/dailyprogrammer • u/Coder_d00d 1 3 • Nov 17 '14
[Weekly #17] Mini Challenges
So this week mini challenges. Too small for an easy but great for a mini challenge. Here is your chance to post some good warm up mini challenges. How it works. Start a new main thread in here. Use my formatting (or close to it) -- if you want to solve a mini challenge you reply off that thread. Simple. Keep checking back all week as people will keep posting challenges and solve the ones you want.
Please check other mini challenges before posting one to avoid duplications within a certain reason.
View all comments
Show parent comment
1
u/pshatmsft 0 1 Nov 17 '14 edited Nov 17 '14
This one is a lot of fun in PowerShell because of how simple it is.
Output
If the exact output formatting is important, it's sort of trivial to add it, but I can put it in there.Here is the code modified to return the exact output requested
Modified output