+ 1
Please how does 14%3 = 2
%
12 ответов
+ 14
Modulo(%) operator gives remainder has the answer 14/3=4 right!, here the remainder is 2(after diving 14/3 it's 3*4=12 +2(remainder)) which is our answer...only case you have to remember is when the first operand (example:5) is less then then the second operator(example:10) then we won't perform any operation between those 2 operands it directly returns first operand
Ex:
5%10=5
+ 4
% is known as modulus operator
After division it will return remainer
+ 3
% is just like simple division but return remainder of division instead of quotient.
/ Gives quotient
% gives remainder.
+ 3
This is a modulo operator. This gives remainder instead of quotient.
14%3=?
Here, quotient is 4 and
Remainder is 2.
+ 2
Tindan Sandow when you divide 2 numbers, you come up with 2 numbers => Quotient and remainder
% helps in calculating the remainder
14%3?
14 = 3*4 + 2
Here, 4 is the quotient and 2 is remainder
Hence, the answer will be 2
+ 2
The result is the integer division of 14 by 3 equal to 2🤔
+ 2
14=3*4+2
+ 1
So it's like search nearest divisible number and subtract
+ 1
Remainder remains thats the answer
0
And is % Like long division
0
Don't understand 🙁🙁🙁
0
%is being told to find the remainder. for example 5%2 what remains is 1 then one is the answer