Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Java by T ( 14 years ago )
//Here is the barebones layout to get each digit separate.

//Initialize you some damn variables
  
while (num > 0)
{
   //This part is self-explanatory

   digit = num % 10;
   
   //You might want something around here to tally your o's/e's/z's

   //This will hack off your rightmost digit

   num /= 10;
}

 

Revise this Paste

Parent: 48521
Your Name: Code Language: