FYI, Here is what I got (big thanks to FordGT90Concept at TPU)
print "Use While loop to calculate the sum: 1-10:";
print "
";
$number = 1;
$total = 0;
for ($number =1; $number <= 10; $number++)
{
print "$number
" ;
$total += $number;
}
Print "The Total is :$total";