Changes between Version 3 and Version 4 of ControlSystems/SoftwareTeam/Training/GettingStarted/Variables


Ignore:
Timestamp:
Nov 4, 2019, 3:01:00 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/Variables

    v3 v4  
    31318. In the output terminal window, observe that the number 12 is output.
    3232
    33 Our example program creates 3 variables (boxes) named a, b, c.  They are all integer variables (they can only hold integer numbers).  The program then places the number 3 in variable a, the number 4 in variable b, and the product of whatever is in a and b into variable c.  Finally, the program prints whatever value is in variable c.
     33=== Understanding the program ===
     34Our example program:
     35* Creates 3 variables (boxes) named a, b, c.  They are all integer variables (they can only hold integer numbers). 
     36* The program then places the number 3 in variable a, the number 4 in variable b, and the product of whatever is in a and b into variable c. 
     37* Finally, the program prints whatever value is in variable c.
    3438
    3539=== Extra Credit ===
    36 Change the program, adding more variables, changing numbers and formulas and run it again.
     40Change the program: adding more variables, change numbers and formulas and run it again.