0

How is the out put of n = 3

if m=24 and n= 7 n=m % n-- cout <<n;

23rd Apr 2018, 7:05 PM
Abdulla Nasri
Abdulla Nasri - avatar
2 Answers
+ 3
27 divided by 7, gives a remainder of 3 % means remainder, after a divide a % b = r r is the remainder of a divided by b.
23rd Apr 2018, 7:44 PM
Emma
+ 2
I think you meant '24 divided by 7' Xan :)
23rd Apr 2018, 10:36 PM
Zeke Williams
Zeke Williams - avatar