Sinisterly
[Golfing] Multiplication Tables - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: [Golfing] Multiplication Tables (/Thread-Golfing-Multiplication-Tables)

Pages: 1 2


RE: [Golfing] Multiplication Tables - 0xDEAD10CC - 10-27-2015

(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.