Please how does 14%3 = 2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please how does 14%3 = 2

%

3rd Sep 2020, 12:09 AM
Ultra WALKER
Ultra WALKER - avatar
12 Answers
+ 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
3rd Sep 2020, 1:16 AM
chaithra Gowda
chaithra Gowda - avatar
+ 4
% is known as modulus operator After division it will return remainer
3rd Sep 2020, 2:23 PM
Shivam Mishra
Shivam Mishra - avatar
+ 3
% is just like simple division but return remainder of division instead of quotient. / Gives quotient % gives remainder.
3rd Sep 2020, 1:39 AM
Divya Mohan
Divya Mohan - avatar
+ 3
This is a modulo operator. This gives remainder instead of quotient. 14%3=? Here, quotient is 4 and Remainder is 2.
4th Sep 2020, 10:14 AM
Sadaf Shaikh
Sadaf Shaikh - avatar
+ 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
3rd Sep 2020, 4:01 AM
Namit Jain
Namit Jain - avatar
+ 2
The result is the integer division of 14 by 3 equal to 2🤔
4th Sep 2020, 7:23 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 2
14=3*4+2
4th Sep 2020, 11:01 PM
Sonic
Sonic - avatar
+ 1
So it's like search nearest divisible number and subtract
3rd Sep 2020, 12:17 AM
Ultra WALKER
Ultra WALKER - avatar
+ 1
Remainder remains thats the answer
4th Sep 2020, 8:53 AM
Sayyam Jain
Sayyam Jain - avatar
0
And is % Like long division
3rd Sep 2020, 12:09 AM
Ultra WALKER
Ultra WALKER - avatar
0
Don't understand 🙁🙁🙁
3rd Sep 2020, 12:12 AM
Ultra WALKER
Ultra WALKER - avatar
0
%is being told to find the remainder. for example 5%2 what remains is 1 then one is the answer
4th Sep 2020, 5:18 PM
Valentine Gatwiri
Valentine Gatwiri - avatar