1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/* Grit diff fixture: patience/histogram stress (independent of upstream Git tests). */ #include <stdio.h> static int walk(int n) { if (n > 2) { return walk(n - 1) + walk(n - 2); } return 1; } static int scale(int n) { for (int i = 0; i < 10; i++) { printf("%d\n", n); } return 0; } int main(void) { scale(walk(10)); return 0; }