updated maggot.c with my suggestions.

void grow(void) - changed to switch statement. moved each statement to their own line.

void turn(char input) - changed all inputs to a switch statement.  changed the if statements checking the snake's direction to their inverse (!= && !=) to remove the empty statement.

void move() - changed to switch statement.

double sqrt(float n) - changed the while loop to for and iter to an int.