Hot goIITian
Cool goIITian
#include <stdio.h> void main(){ int i,j,n; printf("enter a number"); scanf("%d",&n); j=1; for (i=1; i<=n; i++) j=j*i; printf("The factorial of %d is %d\n",n,j); }
i think u hav given for c++..........but i got the idea frm that....thanx