标签:
import java.util.Scanner; public class Main5 { public static void main(String[] args) { Scanner input = new Scanner(System.in); int number = input.nextInt(); int last = number % 10; int shengxia = number/10; int second = shengxia%10; shengxia = shengxia/10; int third = shengxia %10; int sum = last + second+third; System.out.println(sum); } }
标签:
原文地址:http://www.cnblogs.com/aicpcode/p/4396267.html