The equivalent statement of sum=sum+num is:

num+=sum

sum+=num

sum=num++

sum=+num