3² + 4² prints 25, and the square root of it prints 5 with nothing left over. That is the whole trick: a loop of rope divided into twelve equal parts, pinned into a triangle of 3 and 4, cannot close any other way, so the angle between the two short sides is a right angle — and has been for surveyors who never met the theorem in symbols.
Scale it and it stays exact: the 6-8-10 triangle gives √(6² + 8²) = 10, because doubling every side multiplies both squares by 4 and the root takes that factor back out. The same test tells you when a triangle is not right — a 3-4-6 triangle would need the third side to be 5, so at 6 the angle has opened past 90°. And the next triple along, 5-12-13, is the one that makes the diagonal of a room come out whole.
Answer
5
How to read it
The root of 3² + 4². Doubling the sides gives 6-8-10, still exact; the 5-12-13 triple is the one the next problem uses.
Source
Euclid, Elements I.47 (Pythagoras' theorem); Proclus attributes the rope-and-knot right angle to the Egyptian rope-stretchers, 5th century CE
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.