8 ms·
Well, yeah, an actual example of realistic code is going to be more elegant than something that's literally self-parody. int main() { for (int i = 99;
by jeorgun 12y ago
Well, yeah, an actual example of realistic code is going to be more elegant than something that's literally self-parody.
int main()
{
for (int i = 99; i--;) {
std::cout << i << " bottles of beer on the wall, " << i << " bottles of beer.\n"
<< "Take one down, pass it around, " << i << " bottle of beer on the wall.";
}
}
is basically the same thing as the L++ version, with a few added bitshift operators.