Computer Science, asked by muthukimar, 1 year ago

b+=a%2*c. if a=5 b=6 c=7

Answers

Answered by Nitrome
0
If this mathematical expression is from java then here is the solution:
b=b+a%2*c
b=6+1*7 [a%2;replacing value of"a"we get 5%2;modulus '%' returns the remainder when a divided is divided by the divisor' so here in this case the remainder is 1]

b=6+7
b=13(intial value of 'b' gets replaced by the final answer)
Similar questions