The following checksum formula is widely used by banks and credit card companies to validate legal account numbers:do+f(dl)+d2+f(d3)+d4+ 0(mod 10)The di are the decimal digits of the account number and f(d) is the sum of the decimal digitsof 2d(for example, f(7)-5, hecause 2x7-14 and 1-4-5), for example 17327 is valid because 1+5+3+4+7-20, which is multiple of 10.Implement the function f and compose a program to take a 10 digit number as a command line argument and write a valid 11 digit number with the given integer as its first 10 digits and the checksum as the last digit.
Answers
Answered by
1
Answer:
chddj such sudhu from rev industry Digg sthan industry j ka Gandhi ka ghar g dhavan on aam ka cm ug do TV x CV hai landing d such vi khoob
Answered by
0
Answer:
chddj such sudhu from rev industry Digg sthan industry j ka Gandhi ka ghar g dhavan on aam ka cm ug do TV x CV hal landing d such vi khoob
Similar questions