← Back to archive

Stdle #142 · numbers · 2026-10-26

What does this C++ snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

#include <iostream>
int main() {
int votes = 0;
votes += (3 < 5);
votes += (10 == 10);
votes += (1 > 2);
std::cout << votes << "\n";
}
Numbers
4 attempts left

Answer & explanation