[ prog / sol / mona ]

prog


Marvin Minsky - The Beauty of the Lisp Language

151 2020-10-11 10:03

//meanwhile in "inherently limited, dirty imperative land"
#include <stdio.h>
#include <stdlib.h>
#include "Util/random.h"
#include "Util/print.h"
#include "Util/lambda.h"//https://github.com/FrozenVoid/C-headers
int globalX=10;
int globalN=11;
int main(int argc,char**argv){
int localX=22;
int localN=36;
return lambda(int,(int x),print("Result:",x*lambda(int,(int a),print(a+localN+globalN,"\n Characters printed*10:"))(strtoul(argv[1],NULL,10)+globalX+localX)))(10);
}

301


VIP:

do not edit these