用java編程實現獲取一個四位數的各個位的和?
import java.util.Scanner; class Test { public static void main(String[] args) { Scanner a1 = new Scanner(System.in)
; System.out.print("請輸入數字: "); int num = a1
用java編程實現獲取一個四位數的各個位的和?
import java.util.Scanner; class Test { public static void main(String[] args) { Scanner a1 = new Scanner(System.in)
; System.out.print("請輸入數字: "); int num = a1