• Source
    1. #include <stdio.h>
    2.  
    3. int numPrint(int n)
    4. {
    5. if(n<=5)
    6. {
    7. printf("%d \n",n);
    8. numPrint(n+1);
    9. }
    10. }
    11.  
    12. int main(void) {
    13. // here keep point to remember is doing ++( postfix ) will ADD 1 to number.
    14. // -5 will become -4.
    15. numPrint(-5);
    16. return 0;
    17. }
    18.