//Gaynor Thomas Week 8 Arrays 2
#include <stdio.h>

void main()
{
float myvalues[7]={1.2,3.4,4.5,3.45,1.23,6.48,4.67};//short way
int i;
float total;

for(i=0;i<7;i++)
{
total=6*myvalues[i]+2;  //calculation using array values
printf("%.2f\n",total);
}


}