You don't appear to have any formulas -- you go straight from reading the numbers to printing the output without doing any calculations in between. EDIT: No wait, you're just printing the numbers without doing any reading. When you compile the code, your compiler says:
which is true, so you should fix that.Code:warning: 'nwidth_table' is used uninitialized in this function