lab7a.c