View Single Post
  #4 (permalink)  
Old July 15th, 2010, 04:22 AM
bon_chan bon_chan is offline
Authorized User
 
Join Date: Mar 2010
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes it is a typo error.
And the correct answer is:

resultVar += ((var1 * var2) + ((var3 % var4) / var5));

*, % and / have the same priority and in that case it is the leftmost operator that operates first.