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?
Code: BASIC

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 M4 Max ( 14 core CPU - 32 core GPU ), 32GB LPDDR5, 512GB SSD.
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 64GB DDR5 RAM, 2T PCIe 4.0 SSD.
Microsoft Surface Pro 11 ( Snapdragon® X Elite ), 16GB RAM, 512GB SDD.
ASUS ROG Swift OLED PG27AQDM OLED 240Hz.

Until the next time.