nIndividual
array elements can be treated the same way as other data type
n
nInput
Examples
nconst int
NUMBER = 5;
ndouble
temp[NUMBER];
ncin
>>temp[0]>>temp[1]>>temp[2]>>temp[3]>>temp
[4];
n
nfor ( int i =
0 ; i < NUMBER ; i ++ )
n {
ncout << “\n Enter a temperature: “ ;
n cin >>
temp[I];
n }
n