19.07.2016, 15:37
Make a 'flag' variable (1/0) which is initially a zero. Once something in the inventory is not 0, change the 'flag' variable's value to 1.
At the end, before formatting all check if the flag is 0 and if so print 'Inventory is empty'.
At the end, before formatting all check if the flag is 0 and if so print 'Inventory is empty'.