Move 1988-2004 entries into subdirs
We we move 1988-2004 entries from all of a year's winning entries in a single directory to each winner being in their own sub-directory under the given year directory.
This commit is contained in:
1 parent
1e82e8aa3e
commit
d2a42f42e8
478 files changed
No files matched your search
@@ -0,0 +1,44 @@
|
||||
/* A factorial program */
|
||||
int
|
||||
putstr(char *s)
|
||||
{
|
||||
while(*s)
|
||||
putchar(*s++);
|
||||
}
|
||||
|
||||
int
|
||||
fac(int n)
|
||||
{
|
||||
if (n == 0)
|
||||
return 1;
|
||||
else
|
||||
return n*fac(n-1);
|
||||
}
|
||||
|
||||
int
|
||||
putn(int n)
|
||||
{
|
||||
if (9 < n)
|
||||
putn(n / 10);
|
||||
putchar((n%10) + '0');
|
||||
}
|
||||
|
||||
int
|
||||
facpr(int n)
|
||||
{
|
||||
putstr("factorial ");
|
||||
putn(n);
|
||||
putstr(" = ");
|
||||
putn(fac(n));
|
||||
putstr("\n");
|
||||
}
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
int i;
|
||||
i = 0;
|
||||
while(i < 10)
|
||||
facpr(i++);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user