<?php$n = 10; for ($i=1; $i<=$n; $i++) { $sum = $i * $i; echo $sum . "\n"; }
Standard input is empty
1 4 9 16 25 36 49 64 81 100
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!