The program must accept two integers A and B as the input. The program must print the GCD of A! and B! as the output

EXAMPLE INPUT/OUTPUT 1:

INPUT:

4 3

OUTPUT

6

EXAMPLE INPUT/OUTPUT 2:

INPUT:

4 5

OUTPUT

24

CODE:

#include<stdio.h>
#include <stdlib.h>

int main()
{
    long int c=1;
    int A,B,min;
    scanf("%d %d",&A,&B);
    min=A;
    if(B<min)
    {
        min=B;
    }
    for(int i=1;i<=min;i++)
    {
     c*=i;
    }
    printf("%ld",c);
}