6 lines
278 B
Mojo
6 lines
278 B
Mojo
# probe: which mixes of a Float64 with a whole-number literal does the compiler accept, and what do they print?
|
|
def main():
|
|
var x = 95.5
|
|
print(x >= 90, 2 * x, x * 2, x + 1, 1 + x, x == 95, 3 - x, 10 / x, x ** 2, 2.0 ** x)
|
|
print(90.0 <= x < 101.0, 0.5 > x, 1.5 <= x)
|