import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner in = new Scanner(System.in); int a[]=new int[10]; int n; for(int i=0;i<10;i++){ a[i]= in.nextInt(); if(a[i]==0){break;} } for(int i=0;i<10;i++){ if(a[i]==0){break;} System.out.println(jisuan(a[i])); }...