1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <stdio.h> #include <stdlib.h> void f (int a, int b) { if(a<=b) { f(a+1,b-2); printf("%c",'*'); } else printf("%d",b); } int main() { f(17,17); return 0; }
1
15*