30 lines
274 B
C
30 lines
274 B
C
// rec_static.c
|
|
|
|
#include <stdio.h>
|
|
|
|
int count = 1;
|
|
|
|
|
|
void rec_out(int n);
|
|
|
|
void decr(int n)
|
|
{
|
|
rec_out(--n);
|
|
}
|
|
|
|
void rec_out(int n)
|
|
{
|
|
printf("Die %d. Ausgabe.\n", count);
|
|
count++;
|
|
if (n > 1)
|
|
{
|
|
decr(n);
|
|
}
|
|
}
|
|
|
|
int main()
|
|
{
|
|
rec_out(6);
|
|
return 0;
|
|
}
|