d=read.table("stdin") d=d$V1-d$V2 write(180-(d+180)%%360,1,1)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page