ex3.c concluido