FM radio dial by smkt

#define P printf(\x0d
main(T,t,F){float f;while(scanf("%f",&f)>0){F=f>108|f<88;f-=87.7;T=f*3;f>12.3?f-=11.3,T+=f*1.05:0;P"|");for(t=88;t<109;t++)P"%d%s",t,t^108?" ":"");P"|\n|");for(t=0;t<71;t++)P F?"x":T^t?" ":"*");puts("|\n");}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page