Answers for "cpp function to get length"

C++
2

length of number c++

#include<cmath>
    ...
    int size = trunc(log10(num)) + 1
....
Posted by: Guest on December-29-2021

Browse Popular Code Answers by Language