Hello;
can any 1 tell me what is the answer for the following statement :
1%10
and
1%2
:)
Can you spend 10 seconds writing a 1 line program to show you the answers?
the answer is 1 , you should have found it out yourself, x%y = x-(x/y)*y (integer division)
Hello;
can any 1 tell me what is the answer for the following statement :
1%10
and
1%2
:)
Is you question what is it and how it works?. Look for the modulus operator.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.