Programs about verification of imei numbers in c programming
Answers
Answered by
0
The IMEI is validated in following steps:
Starting from the rightmost digit, double the value of every second digit (e.g., 7 becomes 14).If doubling of a number results in a two digits number i.e greater than 9(e.g., 7 × 2 = 14), then add the digits of the product (e.g., 14: 1 + 4 = 5), to get a single digit number.Now take the sum of all the digits.Check if the sum is divisible by 10 i.e.(total modulo 10 is equal to 0) then the IMEI number is valid; else it is not valid.
Starting from the rightmost digit, double the value of every second digit (e.g., 7 becomes 14).If doubling of a number results in a two digits number i.e greater than 9(e.g., 7 × 2 = 14), then add the digits of the product (e.g., 14: 1 + 4 = 5), to get a single digit number.Now take the sum of all the digits.Check if the sum is divisible by 10 i.e.(total modulo 10 is equal to 0) then the IMEI number is valid; else it is not valid.
Similar questions
Math,
7 months ago
Social Sciences,
7 months ago
Biology,
1 year ago
Biology,
1 year ago
English,
1 year ago