1. Lars Yencken
  2. euler

Commits

Lars Yencken  committed 7a25bc9

PHP 01.

  • Participants
  • Parent commits 090ef49
  • Branches master

Comments (0)

Files changed (1)

File php/01-sum-numbers.php

View file
+#!/usr/bin/env php
+<?php
+
+$sum = 0;
+for ($i = 0; $i < 1000; $i++)
+{
+	if ($i % 3 == 0 || $i % 5 == 0)
+	{
+		$sum += $i;
+	}
+}
+
+echo $sum . "\n";