Code to do different mathematical calculation in each row?

could u help me in this code