Project Euler problem 1

This commit is contained in:
sweatshirt0 2023-01-22 13:23:14 -05:00
commit 8b6e6959cf
2 changed files with 17 additions and 0 deletions

14
PE1.php Normal file
View File

@ -0,0 +1,14 @@
<?php
$i = 0;
$sum = 0;
for ($i; $i < 1000; ++$i) {
if ($i % 3 == 0 or $i % 5 == 0) {
$sum = $sum + $i;
}
}
echo "\n" . $sum . "\n";
?>

3
hello.php Normal file
View File

@ -0,0 +1,3 @@
<?php
echo("Hello\n");
?>