Binary Operators in Small Basic


When learning Small Basic (and most all programming languages), you’ll need to know a few quick things about binary operators.

The arithmetic operators (+, –, *, /) are called binary operators because they require two operands: one operand on each side of the operator.

For example:

5 – 3

In that example…

  • 5 and 3 are the operands
  • “-” is the binary operator

The (–) operator is also used to negate a number (like –5). In this case, –5 is called a unary operator, because it has only one operand.

 

Learn more about Small Basic: http://blogs.msdn.com/b/smallbasic/

 

Small and Basically yours,

   – User Ed

 

 

 

Comments (1)

  1. Computers Today (part 1 of 6)

    blogs.msdn.com/…/computers-today.aspx

    …..

    CS SPOTLIGHT: Girls in computer programming… why it matters!!!

    blogs.msdn.com/…/cs-spotlight-girls-in-computer-programming-why-it-matters.aspx

    Computational Thinking – Videos & Papers by Jeannette Wing

    blogs.msdn.com/…/computational-thinking-videos-amp-papers-by-jeannette-wing.aspx

Skip to main content