54.4k views
3 votes
I need help with solution

I need help with solution-example-1
User Aviv Carmi
by
4.3k points

1 Answer

6 votes

Answer:

A

Step-by-step explanation:

When dealing with comp sci,

the / symbol only cares about the whole number of the answer unless we cast it to a double.

For example,


(53)/(5) = 10

in Java,

So here


(13)/(5) = 2

Since a is assigned to that,


a = 2

Next, the symbol % acts as the remainder sign


b\%a

Remember b is 5, and a is 2 now, so


5\%2 = 1

So

b=1

The answer here is A

User Shahbaz
by
4.5k points