MIPI_BaseC_WebinarFRTK/07_Lecture07/06_rec_p19.c

16 lines
164 B
C
Raw Permalink Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
void rec(int n)
{
//~ printf("%5d",n);
if(n>0)
rec(n-1);
printf("%5d",n);
}
int main(void)
{
rec(3);
return 0;
}