+ 2

My first challange.

Wap to find a number(entered by user) if the numbers is a valid bn number or not. A valid bn number is a 10 digit number whose sum of digits +digit*it's position is divisible by 11 e.g 0201103311 is a valid bn number working: 10*0+9*2+8*0+7*1+6*1+5*0+4*3+2*1+1*1=55 and 55 is divisible by 11 and bn numbers cannot contain any letters or special characters. e.g 112113114x so it is not a valid bn number because is contains a letter BEST OF LUCK!!

7th Aug 2017, 5:36 PM
Aditya
Aditya - avatar
2 odpowiedzi
8th Aug 2017, 10:55 AM
Garikai
Garikai - avatar
+ 2
https://code.sololearn.com/chvSJKdPox7j/?ref=app
7th Aug 2017, 6:10 PM
Andrés04_ve
Andrés04_ve - avatar