Your conditions are wrong eg
instead of
if(japp<=5 )
you should do
if(japp>0 && money >=10) // since japp>0 to buy it also since each japp
//costs 10 money , so money should also be greater than 10. Same for other products.
Also your condition
if(money <-1)
japp++;
And
if(jazz <= 0)
becomes unnecessary
1
solved keep value when item costs more [closed]