Explain yourself better
app get a number and i want calculate count digits of number c++ have a function that do it??
There are plenty of examples https://www.ecosia.org/search?q=Count+digits+in+integer+C
you can make a loop and in each iteration take a modulo from division by 10 (to get a digit) and divide the value by 10.
Обсуждают сегодня