im trying to write a fuction that takes in an integer and returns each of the three differnt digits in a seperate referance permater. Im completly lost as where to start to try to break the number down......please help
thanks
Printable View
im trying to write a fuction that takes in an integer and returns each of the three differnt digits in a seperate referance permater. Im completly lost as where to start to try to break the number down......please help
thanks
321
321%10 = 1
321/100 = 3
(321 - (numofhundreds*100))/10=2
i forgot about the % operator....i feel like a dumbass...thanks alot