Update scanner.c

get number if condition