diff --git a/ch02/exercise8 b/ch02/exercise8 new file mode 100644 index 0000000..f1e23c7 --- /dev/null +++ b/ch02/exercise8 @@ -0,0 +1,31 @@ +//Programming Exercise 8 - chapter 2 - exercise8.c +//function in function + +#include + +void one_three(void); +void two(void); + +int main(void) +{ + printf("starting now: \n"); + one_three(); + printf("done! \n"); + + //using windows + getchar(); + + return 0; +} + +void one_three(void) +{ + printf("one \n"); + two(); + printf("three \n"); +} + +void two(void) +{ + printf("two \n"); +}