);
}

void noprint(int i) { /* do nothing. */ }

int main() {
      yesprint(1);
}
</pre>
<p>还有下面这些各种各样的解法：</p>
<pre data-enlighter-language="c" class="EnlighterJSRAW">#include&lt;stdio.h&gt;

/* prints number  i */
void print1(int i) {
    printf(&#34;%d\n&#34;,i);
}

/* prints 10 numbers starting from i */
void print10(int i) {
    print1(i);
    print1(i+1);
    print1(i+2);
    print1(i+3);
    print1(i+4);
    print1(i+5);
    print1(i+6);
    print1(i+7);
    print1(i+8);
 