← Back to archive

Stdle #105 · numbers · 2026-09-19

What does this C++ snippet output?

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

#include <iostream>
int main() {
int x = 7;
std::cout << (x == 7 && x > 0) << "\n";
}
Numbers
4 attempts left

Answer & explanation