int d = 1; //Regular Local Variable int temp = n; //Regular Local Variable while (temp > 9) //A while statement, if t is greater than 9, do this { //Execute the body of code starting here temp = temp / 10; //Make Temp equal itself divided by 10 d++; //Add 1 to d } //Stop executing code here and go back to the top.