Create exercise5.c

Add ver1.0 code