Learn
LOLCODE programs may create output messages to the user with the VISIBLE
command. We can use it to print a text message by putting "
double quotes on each side of the message.
This code, for example, will print "Hai World!"
:
VISIBLE "Hai World!"
Let’s print your name onto the screen!
Instructions
1.
Insert a line between the HAI
and KTHXBYE
lines with a VISIBLE
statement followed by your name.
2.
Run the following command in the terminal again to execute your code:
lci index.lol
It should print out your name.
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.