[ create a new paste ] login | about

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

C++, pasted on Sep 9:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int main() {
    
    int n = 10;
    int a = 2;
    int b = 3;
    
    
    // Generates the same code as with i++
    for(int i=0; i<n; ++i) {
        a += b;
    }
        
    
    
    return 0;
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: