What does % mean | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does % mean

7th Feb 2023, 7:11 PM
David Ogundipe
David Ogundipe - avatar
5 Answers
+ 1
It is known as modulus operator, it gives you a remainder For example:- 7%4= 3 So, 3 is the remainder and if you still have any problem then you can google it with choose program tag(like python, java etc...)
7th Feb 2023, 8:03 PM
Sakshi
Sakshi - avatar
+ 2
Thank you
7th Feb 2023, 8:05 PM
David Ogundipe
David Ogundipe - avatar
+ 1
In Python, it gets the remainder of a division. For example: >> 7 % 2 2 goes in 7 three times (2+2+2 = 6), so the remainder is one. https://www.sololearn.com/Discuss/2628475/?ref=app
7th Feb 2023, 7:23 PM
blank
0
Simply it means remainder %=remainder
8th Feb 2023, 3:57 AM
Herobrine
Herobrine - avatar
0
% is a modules operator, it is use for reminder Example: 10%2 = 0, 10%3 = 1 10/2 = 5, 10/3 = 3.3
9th Feb 2023, 1:22 PM
Muhammad Mubeen
Muhammad Mubeen - avatar