You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while(number > 0)
{
//finds the last digit of the given numberdigit = number % 10;
//adds last digit to the variable sumsum = sum + digit;
//removes the last digit from the numbernumber = number / 10;
}