<?php $num1 = 0; $num2 = 0; for($i = 1; $i <= 100 ; $i++) { $num1 += $i * $i; $num2 += $i; } $num2 = $num2 * $num2; $answer = $num2 - $num1; echo $answer; ?>