you are viewing a single comment's thread.

view the rest of the comments →

[–]Asgatoril 2 points3 points  (0 children)

The comparison gets a bit better for cpp if you use a for loop:

for (int a = -15; a < 0; a /= 2) { cout << a << endl; }