+ 1

How to solve this?

int x=8 int y=5 X℅y

26th Jul 2016, 6:23 AM
Devansh Mevada
Devansh Mevada - avatar
9 Antworten
+ 6
℅ symbol is known as the modulus. Essentially, it takes the remainder of a division. 5 goes into 8 once and 3 remains. So that's the answer. If it was 8%4, it would be 0 because 4 goes into 8 twice with no remainder.
26th Jul 2016, 7:04 AM
James
James - avatar
+ 1
It's an modulus operator or symbol .. The syntax of it like this .. Small number % big number is equals the small number .. Big number % small number is equals remaind of divide numbers .. 2 % 3 = 2 8 % 3 = 2 So .. 8%4 = 0
27th Jul 2016, 12:37 AM
dzhwar
0
no answer shows 3 but how
26th Jul 2016, 6:29 AM
Devansh Mevada
Devansh Mevada - avatar
0
obviously 3,, because 8/5 and reminder is 3 so ans is 3😀
28th Jul 2016, 6:02 PM
jay kalariya
jay kalariya - avatar
0
ans is 3
14th Aug 2016, 4:24 PM
srilekha
0
class math { int a,b,c; void modu(int x,int y) {a=x; b=y; c=a%b; System.out.println(c); } } class modulus { public static void main( String raha[]) {math ob=new math(); ob.modu(8,5); }}
18th Aug 2016, 4:35 PM
Suraj Vishwakarma
Suraj Vishwakarma - avatar
- 1
it's not 3 I tried
9th Aug 2016, 4:23 AM
SarahDiamondFox
SarahDiamondFox - avatar
- 1
it's 5
9th Aug 2016, 4:24 AM
SarahDiamondFox
SarahDiamondFox - avatar
- 3
1.6
26th Jul 2016, 6:26 AM
Vishal C
Vishal C - avatar