Programming a mathematical formula The program How to write and ... Here is a formula for the position of a ball in vertical motion, starting at y ... c = a + b. # 3rd statement print c. # 4th statement. Normal rule: one statement per line.