RE: [Golfing] Multiplication Tables 10-27-2015, 03:19 AM
#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.




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)