What will it print?

Started by TomToad, July 17, 2017, 00:22:26

Previous topic - Next topic

TomToad

Without compiling, can you figure out what this BlitzMAX program will print?

x = 2

x = x----------------------------------------------------------------x
x = x-                                                              -x
x = x      ++    ++  ++++++++  ++        ++          ++++            x
x = x      ++    ++  ++++++++  ++        ++         ++++++           x
x = x      ++    ++  ++        ++        ++        +++  +++          x
x = x      ++    ++  ++        ++        ++        ++    ++          x
x = x      ++++++++  ++++++    ++        ++        ++    ++          x
x = x      ++++++++  ++++++    ++        ++        ++    ++          x
x = x      ++    ++  ++        ++        ++        ++    ++          x
x = x      ++    ++  ++        ++        ++        +++  +++          x
x = x      ++    ++  ++++++++  ++++++++  ++++++++   ++++++           x
x = x      ++    ++  ++++++++  ++++++++  ++++++++    ++++            x
x = x-                                                              -x
x = x----------------------------------------------------------------x

Print x
------------------------------------------------
8 rabbits equals 1 rabbyte.

Qube

lol, that is so cool  8)

My first thought at a quick glance was "error!!!!" - I had to compile to see and it was a number every coder knows.
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.