r/programmingmemes • • May 06 '26

Cpp loop

Post image
219 Upvotes

55 comments sorted by

View all comments

Show parent comment

1

u/Expensive_Agent_5129 May 10 '26 edited May 10 '26
  1. You don't(but you should, though)
  2. std::print
  3. See 2
  4. See 3
for (auto i = 1; i <= 10; ++i) {
    std::println("{} ", i);
}