Tech Mahindra interview question

write a c program for factorial