Find Factorial

Write a program to find factorial.

Program:
#include<stdio.h>
main(){
int n,i,fact=1;

printf("Enter your value = ");
scanf("%d", &n);

for(i=1; i<=n; i++)
fact=fact*i;

printf("Factorial = %d",fact);
}

Loading
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Flying Twitter Bird Widget By ICT Sparkle