Hello;

can any 1 tell me what is the answer for the following statement :

1%10

and

1%2

:)

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.