Can anyone turn these loops into mathmatical boolean statements?

Printable View