A very simple code to generate truth table which was very useful in my Logic Design and DMath course.