11.07.2015 Views

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PICBASIC</strong> <strong>PLUS</strong> Compiler5.71. SWAPSyntax :Overview :Operators :Example :SWAP Variable , VariableSwap any two variable’s values with each other.Variable is the value to be swapped‘ If Dog = 2 and Cat = 10 then by using the swap command Dog will‘ now equal 10 and Cat will equal 2.Var1 = 10 ‘ Var1 equals 10Var2 = 20 ‘ Var2 equals 20SWAP Var1 , Var2 ‘ Var2 now equals 20 and Var1 now equals 10130Copyright Crownhill 2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!