#include <stdio.h>#define p(i,j) printf("%d,%d\n",i,j)int main(void) { for(unsigned char i=4;i--;p(i<<1,i))p((i<<1)+1,i); return 0;}
Standard input is empty
7,3 6,3 5,2 4,2 3,1 2,1 1,0 0,0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!