Math, asked by anvisharma621, 1 month ago

Write the greatest 4-digit number that is exactly divisible by 42 .

Give answer by step by step explanation​

Answers

Answered by XxEVILxspiritxX
1

Answer:

A number x is divisible by a number y if there is no remainder when x is divided by y.

Mathematically,

x modulo y = 0.

In Python and some other programming languages the modulo function is represented by the percent sign (%).

So let’s write a little Python function to solve your problem and others of its kind. Supply the function with any pair of the largest n-digit number (9999 for n = 4), and the divisor (42 in your case) to get the answer (9996 in your case):

Similar questions