Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

As a developer/researcher, you sometimes try silly things. Some of these actually provide results you want to share.

Here's one: What would happen if you created this program and tried to run it?

Important: Answer by running your own compiler (the one in your brain), before hacking in into SE80 :wink:


REPORT ZTEST.




DO '0.5' TIMES.
  WRITE 'Hello world!'.
ENDDO.


Answer:

A) Does not compile

B) Runs, but no output on screen

C) Prints Hello on the screen

D) Dumps when being executed

E) Prints Hello world! on the screen

F) Goes into an infinite loop

G) Prints Hello world! five times on the screen

Would you have guessed?

4 Comments