Latest HR interview Aptitude Question SOLUTION: #include int main(){ int a,fact=1; scanf("%d",&a); for(i=1;i<=a;i++) { fact=fact*i; } printf("%d",&fact); }}

Advertisements