[ prog / sol / mona ]
frontpage - thread list - new thread - preferences - ?
>>47 Alternative #include <stdio.h> int main(){ #define sum(i,acc) acc+=i #define loop(x,y,acc,func) ({for(int i=x;i<=y;i++){func(i,acc);}acc;}) #define sumloop(x,y) ({int acc=0;loop(x,y,acc,sum);}) printf("%d",sumloop(1,10)); }
VIP:
bbs.scm + MIT Scheme + SICP + Satori Mode