f(n){n=n*n+1>>1;} main(j){for(j=1;j<10;j++)printf("%d\n",f(j));}
Standard input is empty
0 0 0 0 0 0 0 0 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!