1) Here we are using the for loop to calculate the sum of digits of a number. 2) Read the entered long value using scanner class object sc.
確定! 回上一頁