Код: Выделить всё
void itoa(int n, char *str)
converts the integer n to characters in string str.
void ltoa(long int n, char *str)
converts the long integer n to characters in string str.
Исправте
Код: Выделить всё
itoa(chislo, B);на
Код: Выделить всё
ltoa(chislo, B);У вас же число long int, а не int