This commit is contained in:
2023-09-23 22:20:41 +03:00
parent 609aa52e66
commit 66997adad5
42 changed files with 642 additions and 0 deletions

13
learnc/learnc4.c Executable file
View File

@ -0,0 +1,13 @@
#include <stdio.h>
int main() {
int array[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
int factorial = 1;
int i;
for (i = 0; i < 10; i++) {
factorial *= array[i];
}
printf("10! is %d.\n", factorial);
}