1/11/00
COM1100 Winter2000 Yuhong Yin Northeastern University
26
Using a Variable
nOnce an identifier has been properly declared, initialized and assigned, it can be used in computations, used in output and other operations appropriate for its type.
nVariables of int and double type can take part in arithmetic expressions, can be printed, and can be assigned a new value.
nBesides reading and writing string, we can manipulate them in a number of ways.