package kljjj; public class kljjjj { public static void main(String[] args) { int x=0023; int a,b,c,d,sum; a=x/1000; b=x/100%10; c=x/10%10; d=x%10; sum=a+b+c+d; System.out.println("jieguoshi"+sum); } }