just remove the extra =
should solve the problem.
It works out (in order):
q+r=55 (brackets sorted out first)
Tests whether 100==55 ... which it isn't, so evaluates as false.
Casts false to an integer to do the assignment (=) ... this is 0.
Exercise for the interested: change q+r to r+r and predict the result.