factorial.c to demo global variable