Soliton Technologies interview question

Write a c program for factorial