Computer Science, asked by najamakhtar6291, 1 month ago

If int a = 25, b = 5, c = 0; what value is stored in c when c = a % b; ?

5.0

5

0

Answers

Answered by atrs7391
4

The value stored will be 0

% gives the result as the remainder and not the quotient, So when 25 is divided by 5 the the quotient is 5 and the remainder is 0 so answer is 0...

Answered by XxDABICAKExX
1

Answer:

5

Explanation:

as yk a=25, b=5, c=0

so....

c = a%b

c = 25%5

c  =  \frac{25}{5} (5 \times 1 = 5 and  5 \times 5 = 25  \\ c   =  5

as here... %does not give the reminder it gives the questiont.

Hope it helps u bro❤️

Similar questions