The Print Command That Doesn’t Print

The challenge for Chapter 8 in my coding book was to find a way to print a percent sign in Chide, a programming interpreter.

First, I just typed in a percent sign because I was curious to know why it didn’t work. Then I typed in a number next to the percent sign, convinced that it would work this time, but it didn’t. Then, I added words next to it. I just couldn’t wrap my head around why the percent sign won’t print. Little did I know that the answer to that is as simple as printing two signs.

Later, I found out that the computer thinks that a percent sign correlates to a number. When you print two percent signs, the computer understands that you are trying to print the symbol and not a number.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s