In ex24.c change fscanf to scanf.