Question d’entretien chez Daedalean

C++ code to square numbers optimally