Update store-credit.c

solution implemented. not tested yet.