Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Area & Perimeter of Circle
pointer_swap
FileCat
finalpyramid
app1
Name pipe
apel
tgo
left significant peace as unison real manual user
Linked List
Please log in to post a comment.