#012 – Prefer ‘\n’ over std::endl
When using std::cout we typically return a new line at the end of each statement for cleanliness. Despite std::endl being designed to serve this purpose, it is more efficient to use '\n'. This is because the later doesn’t flush the…