truth tables - use a loop for true/false