+ 2

% indicates what??

18th Sep 2016, 11:26 AM
Ajay Gadiyar
Ajay Gadiyar - avatar
14 Answers
+ 7
% is the modulus operator, giving you the remainder of the euclidian division. 42%9 is 6 because 42 = 9*4 + 6 a%b is 0 if a is a multiple of b a%2 is 0 if a is even and 1 if a is odd a%10 gives you the last digit of a a%100 gives you the last two digits of a etc.
18th Sep 2016, 11:29 AM
Zen
Zen - avatar
+ 2
% mean : value remaining in division for example : 50 % 6 50 /6 >> 8 x 6 = 48 >> 50 -48 = 2 so the result is = 2
18th Sep 2016, 1:28 PM
Sezgin GÜL
Sezgin GÜL - avatar
+ 2
% means remainder if there is 7%2 here remainder we get is 1 so the answer will be 1
30th Jan 2017, 4:18 PM
shivam
shivam - avatar
+ 1
int x=10; int y=(x%4)*3-2; cout<<y++; how the answer is 4
22nd Sep 2016, 10:27 AM
Sumit Bawa
Sumit Bawa - avatar
+ 1
it is modulous if u use it it gives remainder not quotient..
30th Sep 2016, 4:51 PM
rahul negi
rahul negi - avatar
+ 1
we can described it as 12=2*5+2 ,2 is a reminder
29th Jan 2017, 9:54 AM
kishan
+ 1
% remainder operator that is 7%2=1 displays only the remainder 7/2=3 displays only the quotent
31st Jan 2017, 10:18 AM
Suprajhaa.M
Suprajhaa.M - avatar
+ 1
It is like this. quotient=divisor//dividend (Floor division) remainder=quotient+divisor-dividend Modulus returns the remainder
9th Feb 2017, 5:15 PM
Ms Arnold
Ms Arnold - avatar
+ 1
it gives remainder of the division as output
11th Feb 2017, 3:16 AM
Mohammed Mubin
+ 1
% indicates reminder operator(modulus) ...it is used to get the reminder after dividing two numbers. for example: 6%4=2!
17th Feb 2017, 9:17 AM
Noulmon K C
Noulmon K C - avatar
+ 1
% module is the term of remainder after the Complete divination 😀😀 . Let's fun with % module 😂😂
9th Sep 2019, 9:21 AM
Shanti Lal Prajapat
Shanti Lal Prajapat - avatar
0
modulus or remainder
16th Nov 2016, 12:18 PM
rinki
0
it is a modulus operator. it requires two operands to work. it is used to produce remainder. E.x. 4%2=0 10%4=2 .Hope this helps.
4th Dec 2016, 3:31 PM
K Mahesh Kumar Sharma
- 1
'%' also is also known as 'modulus operator' which is used to get the reminder in division operations. For example: 4%1=0 4%2=0 4%3=1 4%5=4
10th Sep 2019, 2:29 AM
Noulmon K C
Noulmon K C - avatar