Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C_141120_factorial01
//Title of this code #include <stdio.h> int main(void) { long factorial[10]; short i, aux; long F; for(i = 0 ; i < 10 ; i++) { F = 1; aux = i; while(aux) F *= aux--; factorial[i] = F; } for(i = 0 ; i < 10 ; i++) { printf("Factorial de %hd es %ld\n", i, factorial[i]); } return 0; }
run
|
edit
|
history
|
help
0
Linked List
18BCE2182 ASSESS_1 Q1-2
Memory leak
Project 4 v.5
G
json formatter
ECE 2574 1/23
prime or not
use_of_bool_in_loop
Mem alloc test