Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to find first digit of a number in c

int num;

while (num!=0)
{
	num/=10;
}
 
PREVIOUS NEXT
Tagged: #find #digit #number
ADD COMMENT
Topic
Name
5+4 =