Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

find last digit of number

//C++
int last_digit = number % 10;
 
PREVIOUS NEXT
Tagged: #find #digit #number
ADD COMMENT
Topic
Name
5+3 =