update on ltable.cpp

update on ltable.cpp, changing code to print truth table