Update pratica8.c

pratica 8 working