Computer Science, asked by sujatasingh7198, 9 months ago

The modulus operator(%) can be used only with integer operands.True/False ​

Answers

Answered by kaavyaa
20

Answer:

true

Explanation:

The modulus operator (%) in Java can be used only with variables of integer type. The modulus operator (%) may be used with floating-point as well as integer types. It returns the remainder of a division operation, e.g., 10 % 6 will return 4.

hope it helps

pls mark as brainliest.

Answered by yoodyannapolis
4

True is the correct answer to the given question

Explanation:

  • The modulus operator can be used to find the reminder between the two Operands .
  • The modulus Operator is comes in the arithmetic operator category .  

       For example :

        int a=7;

        int c;

       c=a%2

  • it gives reminder i.e 1 .The reminder never be the decimal value thats why the following statement is true .

Learn More :

https://brainly.in/question/6629425

Similar questions