fork download
  1. #include <stdio.h>
  2. int main(){
  3. int i, n,fact=1;
  4. printf("Enter the number:");
  5. scanf("%d",&n);
  6. for(i=0; i<=n;i++)
  7. {
  8. fact*=i;
  9. i++;
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0s 5272KB
stdin
10
stdout
Enter the number: