Update task_2.c

fixed negative numbers