please i need it urgently...if anyone can help
Let me google that for you
try it for yourself first, then ask for help when you have trouble.
we will not do your homework for you, no matter how "urgent" it is
your failure to plan does not constitute an emergency on our part.
Also wrong category. This is for C++, not C.