← Back to archive

Stdle #148 · numbers · 2026-11-01

What does this C++ snippet output?

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

#include <iostream>
int main() {
long long big = 9;
auto r = big / 2;
std::cout << r << " "
<< (9 / 2) << "\n";
}
Numbers
4 attempts left

Answer & explanation