Arduino sketch from truth table

No I completely understand your point and would never in my life cheat or do anything like it. I am here to learn. And I thought there is a proper way of doing it, but as I see I will have to rely on what I have already learnt and do it my way, the way I have thought to do it before. Line by line in C language. But thanks anyway you made it for me a bit clearer.