Create ex8.c
Merge pull request #8 from CarlosDSTavares/patch-6

fix ex8