#include <stdio.h>

long int fact(int x){

  if (x ==1 || x ==0) return 1;
  return x * fact(x-1);
    // RECURSION

}

int main(){
    long int f;
    int value = 3;
    f = fact(value);
    printf("factorial of %d is  %d \n", value, f);
}

