0

Can you tell me the meaning and working of % in c++

I m not able to understand this is this relates to division's reminder or something else

5th Apr 2018, 7:02 AM
Sahil Chauhan
Sahil Chauhan - avatar
2 odpowiedzi
+ 1
Then look if you have 14%5=4 because 14/5=2*5+4, number 2 is the greatest value to multiple with divisor. 4 is the rest of the division. We are trying to get as much 5 from 14 as possible. The rest which we cannot take in all is our result.
5th Apr 2018, 7:05 AM
Bartosz Pieszko
Bartosz Pieszko - avatar
+ 1
thanx I got that
5th Apr 2018, 7:48 AM
Sahil Chauhan
Sahil Chauhan - avatar