100k views
0 votes
What is % in programming?

2 Answers

6 votes
% is a module that divides two numbers.
User Milen Kindekov
by
8.2k points
3 votes
The % (modulo) operator returns the remainder from division. For example, 10 % 3 = 1, because 10 divided by 3 is equal to 3 remained 1.
User Kill KRT
by
8.2k points

No related questions found