【C Primer Plus 】编程练习第二章
7、
#include <stdio.h> void smile(); int main() { int i, j = 0; for (j = 0; j < 3; j++) { for (i = 3; i > j; i--) { smile(); printf("\t"); } printf("\n"); } getchar(); } void smile() { printf("smile"); }
8、
#include <stdio.h> void two() { printf("two\n"); } void one_three() { printf("one\n"); two(); printf("three\n"); } int main() { printf("staring now:\n"); one_three(); printf("done!"); getchar(); }