Hi guys Ive been having problems with calculations on arrays. What i want to do is times two numbers in an array for example:
4 x 4 = 16
Here's what i'm trying to do
double timeArray[3];
cin >> timeArray[0];
cint >> timeArray[1];
answer = timeArray [0] * timeArray[1];
the program compiles OK, the problem is i get a load of numbers can anyone help.