#include <stdio.h> int main() { int product=1; int n=4; for(int i =1;i<=n;i++){ product*=i; } printf("The factorial is %d",product); return 0; return 0; }
To embed this program on your website, copy the following code and paste it into your website's HTML: