#include <stdio.h>
int main() {
int n = 20;
int i;
long P = 1;
for(i=1; i<=n; i=i+1) {
printf("---------\n");
printf("P = %ld\n", P);
printf("i = %d\n", i);
P = P * i;
printf("P = P * i = %ld\n", P);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: