As Uno says, always use "λ" (lambda) for wavelength and "f" for frequency. This is universally understood.
The two formulas are actually very close to the same thing.
$$L = \frac{140}{f}$$
is assuming that you're expressing the frequency in MHz, and the length in meters. The constant 140 comes from dividing the speed of light (300e6 meters/second) by 1e6 (the number of cycles in one MHz), dividing by 2 to get a half wavelength, and finally multiplying by a correction factor of 14/15, or about 93%. This correction factor accounts for details like the "velocity factor" of the wire and "end effects" — it's a "rule of thumb" for getting better results for practical antennas.
The other formula is essentially identical to this, except that it ignores the correction factor, and it uses frequency expressed in Hz.
$$L = \frac{300e6/2}{f}$$