[ create a new paste ] login | about

Link: http://codepad.org/KBYtTEL6    [ raw code | output | fork ]

C, pasted on Oct 1:
#include <stdio.h>

int proc1(int num) {   
    proc2(num);
    num++;
    proc2(num);
    num++;
    proc2(num);
    num++;
    proc2(num);
    num++;
    proc2(num);
}

int proc2(int num) {
    printf("%d\n", num);
}

int main()
{
    printf("Hello World\n");
    proc1(1);
    return 0;
}


Output:
1
2
3
4
5
6
Hello World
1
2
3
4
5


Create a new paste based on this one


Comments: