002.c: more local variable
002.rs: imperative is faster than functional