Skip to content

Instantly share code, notes, and snippets.

@trys
Created December 3, 2014 10:22
Show Gist options
  • Save trys/e1705b4001e4df616759 to your computer and use it in GitHub Desktop.
Save trys/e1705b4001e4df616759 to your computer and use it in GitHub Desktop.
Problem One
$total = 0;
for ( $i = 0; $i < 1000; $i++ )
$total += $i % 5 === 0 || $i % 3 === 0 ? $i : 0;
echo $total;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment