I want to use variable instead of numbers as infix. Say I have red*blue+green as infix, where these are red, blue, green are variables names representing each array columns for n*3 array. Get the corresponding numerical row values for each row and use it to substitute the variables in the input to get new infix. eg

where red,blue and green are the column names.Code:array[2][3]={34.5,13,21,11,16,9.55}

Infix input : red+blue*green

infix output:I haven't got any clue on how to go about this. Can someone help me out?Code:34.5+13*21