Update task_2.c

fixed negative numbers
Merge pull request #75 from SWAGSLAYER/patch-3

Update task_2.c