Cognizant Interview Question

Write a c code for factorial function