if i got it rite, you want a program where in u hav 50 items along with their stock and u have 2 functions one fr decreasing stock n one for increasing it...
well i know only c++ here is methodology..
*make a 50x2 global array
*use one functions, arguments as the item no.(1-50), inc/dec (use 0/1) and the quantity u wana inc/dec
*put a check in func, if 1 inc invent[itemno-1][1]+=quatity (numbering in arrays start frm zero)else -=quantity
n voila u r done..
now this is only if i got what u meant....
otherwise please ignore the ignorance..