When use % why the answer of question is remainder of that question's divide. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

When use % why the answer of question is remainder of that question's divide.

5th Oct 2020, 5:09 AM
Shounak
Shounak - avatar
4 Answers
+ 10
Bro Its modulus which means it is used to know the remainder after dividing (6%5=1)(12%5=2)it's also easy to understand But if you want more there is in javascript's lesson✌
5th Oct 2020, 8:56 PM
Jhonny
Jhonny - avatar
+ 2
This is modulus (%). If you want to find the remainder after dividing than use it and if you want the quotient the simply use (/) and if you want the quotient to be round figured and as a whole number than use (//).
5th Oct 2020, 5:24 PM
Aditya Raut
+ 2
PÃŁŁÃVÎ JHÁ that depends on the language. Some languages will give 0 for 25/500.
6th Oct 2020, 10:35 AM
Sonic
Sonic - avatar
+ 1
Then how can I get percentage of number?
5th Oct 2020, 5:23 AM
Shounak
Shounak - avatar