if one of the two given number is multiply of the other the greater of the two is there?
Answers
Answered by
0
Step-by-step explanation:
Multiply the given number by 2 such that it is divisible by 10
Given a number, the only operation allowed is to multiply the number by 2. Calculate the minimum number of operations to make the number divisible by 10.
NOTE: If it is not possible to convert then print -1.
Examples:
Input: 10
Output: 0
As the given number is itself divisible by 10,
the answer is 0.
Input: 1
Output: -1
As by multiplying with 2, given no. can’t be
converted into a number that is divisible by 10,
therefore the answer is -1.
Similar questions
CBSE BOARD XII,
3 months ago
Environmental Sciences,
3 months ago
English,
11 months ago
Math,
11 months ago