Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  qwe
Language: C/C++
Code:
#include <stdio.h>
int fact ( int n )
{
  int i, prod = 1;
   for ( i = 1; i <= n; i++ )
    prod = prod * i;
  return prod;
}
int main()
{
  int q;
  printf("q");
  scanf("%i", &q);
  printf("%i", fact(q));
}
          
          
          
          
          
          
          
          
          
          
          
          
Comments: