while (n–->42) { std::cout << n; }

To write great code you must first read great code – our reading list || Hackership blog

http://blog.hackership.org/2015/05/Read-Code.html