SyntaxFix
Write A Post
Hire A Developer
Questions
Using Java
int nDigits = Math.floor(Math.log10(Math.abs(the_integer))) + 1;
use import java.lang.Math.*; in the beginning
import java.lang.Math.*;
Using C
int nDigits = floor(log10(abs(the_integer))) + 1;
use inclue math.h in the beginning
inclue math.h