(Solved) : 1 Point Write Iterative Method Int Sumofdigits Int X Returns Sum Digits Integer X 1234 Fun Q37161264 . . .
Can I get help with this question? 1 point) Write an iterative method int sumofDigits(int x) that returns the sum of the digits of an integer. If x is 1234, the function should return 1 +2+3+4, that is, 10. If…