In fact, in my opinion, the word bet is in the word gambling, so these two things are different from the reading sentence but have meanings and meanings that are not much different, even almost exactly the same. Because I think there is no big or strong difference between these two things, the difference is only in how to do it.
The gambling had the betting in it,the gambling games had many betting games.So betting is the amount of money he is betting in the particular game.If the gambling is made with the certain dollars,we will analyse the game result at the end of money holding by the gambling.This money is the remaining money after he made many bets in the game.So the bets may give the gamblers more money or loss of money he used in the gambling site.If the betting give the gamblers some money winning,he should learn to withdraw the money immediately.Else the gamblers will loss the full funds in reverse algorithm of the gambling.
With what my friend did, in my opinion, it can be called a bet and can be called gambling because there is something at stake, also with casino gambling where there is a chance to win, we must be able to realize that victory is difficult to obtain, therefore withdrawing victory or profit is something that must be done.