Chewbacca and number run time error

Hi @vikashkmr519,
you have to form minimum number so if (digit >=5 )then replace it by 9-digit. Just a small error. And also while taking out the number of digits you divide n so n finally become 0 . Use a dummy value in its place. Look for comments in this program .