+ 1
How to solve this?
int x=8 int y=5 X℅y
9 Respostas
+ 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.
+ 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
0
no answer shows 3 but how
0
obviously 3,, because 8/5 and reminder is 3 so ans is 3😀
0
ans is 3
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);
}}
- 1
it's not 3 I tried
- 1
it's 5
- 3
1.6