[ create a new paste ] login | about

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

C++, pasted on Dec 10:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
int main( void )
{
    if(int n = true)
    if(int m = true)
    if(n = 0, m = 5, true)
    do
    {
        std::cout << n << std::endl;

        if(std::rand() % 2)
        {
            ++n;
        }
    }
    while(n < m);

    return 0 ;
}


Output:
1
2
3
4
5
6
0
1
1
2
3
4


Create a new paste based on this one


Comments: