```
```

package com.codegym.task.task01.task0132;
/*
Sum of the digits of a three-digit number
*/
public class Solution {
public static void main(String[] args) {
System.out.println(sumDigitsInNumber(546));
}
public static int sumDigitsInNumber(int number) {
//write your code here
int sum;
sum=0;
while( number< 1)
sum = sum + number / 100 *10;
number = number/10;
return number/10 + number /10+ number/10;
}
}