Variables, Data Types, Constants and Operators


      Learning Objectives
      Be able to declare variables
      Be able to write simple arithmetic expressions
      Be able to input values typed at the keyboard into a program using cin
      Be able to output values to the screen using cout
      Be familiar with the concept of constants
      Be able to combine above to write simple programs which require the use to input values, make calculations and output the results

      Source Code from Notes
      Additional Examples
      Quick Check Exercises
      Additional Exercises to try
      Test Cases for Tutorial


      Previous Lecture Home Next Lecture