Update zad_377.c

Problem solution developed.