duj3e, you asked me why the result is always 0, I think the answer also serves here in the open:
Because you create new integer variables W,L,D which initialize to 0, and don't set other value later. When you know W,L,D is 0, you can easily see that the result of the calculation is always 0. You probably want to set those variables to something based on user input. This is so extremely basic programming knowledge (usually one of the first things taught to beginners), that the best advice is for you to spend a few hours reading a beginners book or some online tutorials. You will get far more out of that than asking questions of this level at internet forums.