<?php $X = trim(fgets(STDIN)); for ($y = 1; $y <= $X; $y++) { echo $y."\n";} ?>
15 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!