f(i,t){return(2390221+t*1110238)>>(4*(7+~i))&15;}main(){int i;for(i=1;i<7;++i)printf("pin %d: %2d button %d: %2d\n",i,f(i,1),i,f(i,0));return 0;}
Standard input is empty
pin 1: 3 button 1: 2 pin 2: 5 button 2: 4 pin 3: 6 button 3: 7 pin 4: 9 button 4: 8 pin 5: 10 button 5: 12 pin 6: 11 button 6: 13
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!