Learn

LOLCODE allows us to combine, or concatenate, multiple strings together by using the SMOOSH and MKAY keywords.

For example, if the code below is executed:

BTW Results in "baklavaaaaaaa" VISIBLE SMOOSH "baklav" "aaaaaaa" MKAY

The terminal will output:

baklavaaaaaaa

SMOOSH is a slang for “squash” or “crush.”
MKAY is a slang for “ok.”

Instructions

1.

Declare a firstName variable and read in the value from the user.

Then print "Hello, " and firstName SMOOSHed together.

2.

Declare and read in a lastName variable from the user.

Then print "Hello, " firstName, " ", and lastName all SMOOSHed together.

Take this course for free

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?