"write an expression that evaluates to true if the value of the integer variable x is divisible (with no remainder) by the integer variable y. (assume that y is not zero.)"

Respuesta :

Solution:

As we have to write an expression , which evaluates to true if the value of the integer variable x is divisible (with no remainder) by the integer variable y, y≠0.

so, when x is divided by y we should get remainder as 0.

Using Euclid division lemma

x= y* q + m, i.e when an integer x is divided by y gives quotient q and remainder m.

Here , m=0

So, x = q * y

So, the expression which describes the above relationship is ,

[tex]\frac{x}{y}=q[/tex], where q is Quotient.


Answer:

[tex]x=ky[/tex] , where k is a constant.

Step-by-step explanation:

We are given that x and y are variables having integer values where y ≠ 0.

It is required to write an expression such that 'x is exactly divisible by y' i.e. there is no remainder.

Let us consider x= 12 and y = 4 ( ≠ 0 ),

Then, [tex]\frac{x}{y} =\frac{12}{4}=3[/tex] i.e. x = 12 is completely divisible by y = 4.

It gives the relation x = 3y and also, this relation [tex]x=3y[/tex] is the true for x =12 and y =4.

Hence, the required expression is [tex]x=ky[/tex] , where k is a constant.

Q&A Education