#include <stdio.h> int main() { int a = 1, b, c, d = 5; while(a <= d) { b = 1; c = 1; } while(c <= a) { b = b * c; c = c + 1; } printf("%d! = %d\n", a, b); a = a + 1; }
To embed this project on your website, copy the following code and paste it into your website's HTML: