Ah, I figured.. move your cout inside your inner for loop so that it prints twice per row. and replace your equivalent to an equal sign. Double equal sign is a relational operator, not an arithmetic operator.. put a single equal sign and that should do it..
having the double equal sign does not assign the formula to the specific array, that is why the large numbers appear. technically, it just 'compared' the array with the formulas, and not assign it...