it says 600 but i dont exactly know why
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 a = number/1 + number%1;
int b = number/10 + number%10;
int c = number/100 + number%10;
int abouluesy = a + b + c;
return abouluesy;
}
}