Variables, arithmetic operations and conditions

The following set of programs provides examples for use of variables, arithmetic operations, and conditions. We will look at more examples when we meet:

Program 2: Arithmetic operations, variables
http://ideone.com/5Z7o5

Programs 3-6: Conditions
http://ideone.com/CL2TD
http://ideone.com/6GvFA
http://ideone.com/AvtTw
http://ideone.com/Eoilq

Additional materials for these topics can be found in the books I suggested or online. As we go through more complex topics, we will of course have to revisit these basics and get better at them.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


6 × six =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>