>GOCO IDE
  • Home
  • Docs
Download
Documentation
Documentation
01Chapter 1: Basics02Chapter 2: Variables & Types03Chapter 3: Input and Output04Chapter 4: Math and Operators05Chapter 5: Making Decisions06Chapter 6: Repeating Parts (Loops)07Chapter 7: Functions08Chapter 8: Arrays (Lists)09Chapter 9: Standard Libraries
Docs4. Doing Math and Comparing Things

4. Doing Math and Comparing Things

Learn Doing Math and Comparing Things through beginner-friendly explanations, working GOCO examples, and their expected output.

4.1 Math Rules

You can do all standard math using symbols. You can add, subtract, multiply, and divide numbers.

goco
Displaynl(10 + 3). // addition
Displaynl(10 - 3). // subtraction
Displaynl(10 * 3). // multiplication
Displaynl(10 / 3). // division
Displaynl(10 % 3). // remainder

4.2 Changing Numbers Quickly

You can increase or decrease your numbers fast by using ++ to add 1 and -- to take away 1.

goco
Number apples = 5.
apples++.
Displaynl(apples).
// You can also use quick math signs.
apples += 4.
Displaynl(apples).

4.3 Comparing Or Checking Things

You can check if two things are the same or which one is bigger. This will always give you a True or False answer.

goco
Number x = 5.
Number y = 10.
Displaynl(x == y).
Displaynl(x != y).
Displaynl(x < y).
Displaynl(True And False).

4.4 Joining Words Together

The addition sign '+' can also stick words or sentences together like glue.

goco
Sentence first = "Hello".
Sentence second = "World".
Displaynl(first + " " + second + "!").
Displaynl("My age is: " + 12).
Previous3. Talking to the User
Next5. If Statements and Choices
GGOCO IDE

Write real code, compete in ranked battles, and level up your problem solving in one editor.

Stay updated

Get product updates and new learning resources. No spam.

Product

  • Home
  • Docs
  • Download IDE

Account

  • Sign in
  • Create account
  • Add a review
  • Send a suggestion

Contact

+91 93269 63378kancorp.inc@outlook.com
KanCorp Inc, India
© 2026GOCO IDE™. All rights reserved.Made withby KANCorp Inc.