/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,
C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
#include <stdint.h>
int32_t factorial(int32_t n){
return(n>0?factorial(n-1)*n:1);
}
int main()
{
int32_t n=23;
printf("Factorial of %d is %d",n,factorial(n));
return 0;
}