You can also use a read statement to assign a value to an array location directly, without using a variable as an intermediary:
scanf ("%lf", &array name[index])