Hey guys am stuck at some point
if i have a value say 5432
how to get 5?
same as the rest of the number
do i need to know the reminder??
becuase really suck at this thing
use %10 to get the last digit. for example if num is an int variable and num=25, then num%10=5 (the last digit of the number) and you can store that digit in a separate variable