Why are those there? It makes it so that pretty much anything below those lines can only be reached if the amount to deposit or withdraw is 0. Moreover, why do you call it "type" instead of "money" or "cash" or "amount"?
Do you suggest to change type to amount and remove if(type == 0)?