Login Register






[Golfing] Multiplication Tables filter_list
Author
Message
RE: [Golfing] Multiplication Tables #11
(10-26-2015, 06:45 AM)Shebang Wrote: Your program should be taking input somewhere, so the 13 you have hardcoded should be a number the user inputs (from what I understand).

Code:
#define f(r,k,n)while((++r,r%=n)?printf("\t%d",r*k):(puts(""),++k<n))

*69

Code:
int r=0,k=1; int n=13; f(r,k,n);

?

The general solution is still there. Function calls can be inlined so I don't see a reason why macros shouldn't be allowed.

Reply