Difference between /and % | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Difference between /and %

30th Jul 2017, 3:04 PM
AdityaSingh
2 Answers
+ 15
/ returns quotient % returns remainder 5 / 2 = 2 5 % 2 = 1
30th Jul 2017, 3:06 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 1
% has a circle on either side of the /. / doesn't *just joking*
30th Jul 2017, 3:11 PM
James Cooke