Is the % a division sign??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Is the % a division sign???

22nd Sep 2018, 4:08 PM
Alexbex822
Alexbex822 - avatar
13 Answers
+ 6
no, it is modulo sign. The % operator returns the remainder of two numbers. For instance 10 % 3 is 1 because 10 divided by 3 leaves a remainder of 1.
22nd Sep 2018, 4:10 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 6
% is the modulo operator 🤥. it is used to find the reminder . 🙂 example : 4%2 =0 and 4%3=1.
23rd Sep 2018, 10:32 AM
Vishnu
Vishnu - avatar
+ 5
% is a modulo operator that returns the remainder of two numbers that are divided unequally. If the numbers are divided equally then remainder would be Zero. 5 % 2 = 1 4 % 2 = 0
22nd Sep 2018, 8:17 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 4
If modulo (a,b) was a program it would perform a = a - abs(b) (where b is the positive value of b) for a positive value of a until a was less than b. For a negative value of a, it would perform a= a+abs(b) until a was greater than b.
23rd Sep 2018, 11:49 PM
Jonathan Shiell
+ 3
It's the modulo sign. It gives you the remainder when a number is divided by some number. 1.In C language it is used in the format specifier. 2.In Python language it is used as a format operator.
22nd Sep 2018, 9:27 PM
PROTON
PROTON - avatar
+ 3
Example : A = 4/2 B = 4%2 Result: A=2 B=0 / is division % is modulo
23rd Sep 2018, 6:43 AM
Jai Verma
Jai Verma - avatar
+ 2
in what term you are asking % -division %- int value in c and c++ %- percentile
22nd Sep 2018, 5:33 PM
rani Kadu
rani Kadu - avatar
+ 2
\ is division % is modulo
22nd Sep 2018, 11:00 PM
Stick
Stick - avatar
+ 2
Thats a Modulo.
23rd Sep 2018, 3:58 AM
Joshua Martin Fontanilla
Joshua Martin Fontanilla - avatar
+ 2
no its a modulo sign which is used to get reminder after division
23rd Sep 2018, 6:18 AM
Pankaj Sharma
Pankaj Sharma - avatar
+ 2
is reminder and madulo are same!?
23rd Sep 2018, 7:05 AM
Neeraja Shetty Pasuparthy
Neeraja Shetty Pasuparthy - avatar
+ 2
ya modulo is used to get reminder
23rd Sep 2018, 9:20 AM
Pankaj Sharma
Pankaj Sharma - avatar
+ 2
no it is a modulas sign it show remainder in programming language
23rd Sep 2018, 5:00 PM
Harsh Yadav
Harsh Yadav - avatar