//Factorial.
#include<stdio.h> main() { int i,n,fact=1; printf("enter value"); scanf("%d",&n); for(i=1;i<=n;i++) { fact=fact*i; } printf("factorial of value=%d\n",fact); }
No comments:
Post a Comment