Sum multiples of 3 and 5: Difference between revisions

Content added Content deleted
m (→‎{{header|Powershell}}: Correct spelling)
Line 999: Line 999:
233333333333333333333333333333166666666666666666666666666668</pre>
233333333333333333333333333333166666666666666666666666666668</pre>


=={{header|Powershell}}==
=={{header|PowerShell}}==
Here is a cmdlet that will provide the sum of unique multiples of any group of numbers below a given limit. I haven't attempted the extra credit here as the math is too complex for me at the moment.
Here is a cmdlet that will provide the sum of unique multiples of any group of numbers below a given limit. I haven't attempted the extra credit here as the math is too complex for me at the moment.
<lang Powershell>function Get-SumOfMultiples
<lang Powershell>function Get-SumOfMultiples