← Back to archive

Stdle #22 · conversions · 2026-06-28

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
double total = 0;
for (int i = 0; i < 3; i++)
total += 1 / 2;
printf("%.1f\n", total);
return 0;
}
Conversions
4 attempts left

Answer & explanation