Is there any way to write the number **37** from the below image on the same line with equal sign?

```
\textbf{3.} Afla\c ti de\^ imp\u ar\c titul \c stiind c\u a \^ intre \^ imp\u ar\c titor, c\^ at \c si rest avem rela\c tia $i^2+c^2+r^2=37$.
```

Thanks!

## Best Answer

Rather than enclosing the math formula inside

`\mbox`

, as John Kormylo suggests, I’d define a command that prohibits line breaks inside a math formula. Indeed, this allows the glue inside the formula to stretch and shrink together with other glue on the same line, whereas John’s solution does not.Output: