import java.util.Scanner;public class Test40010 {public static void main(String[] args){int ri,repeat;int number,sum,n;Scanner in=new Scanner(System.in);repeat=in.nextInt();for(ri=1; ri
来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 03:38:34
import java.util.Scanner;public class Test40010 {public static void main(String[] args){int ri,repeat;int number,sum,n;Scanner in=new Scanner(System.in);repeat=in.nextInt();for(ri=1; ri
import java.util.Scanner;
public class Test40010 {
public static void main(String[] args){
int ri,repeat;
int number,sum,n;
Scanner in=new Scanner(System.in);
repeat=in.nextInt();
for(ri=1; ri
import java.util.Scanner;public class Test40010 {public static void main(String[] args){int ri,repeat;int number,sum,n;Scanner in=new Scanner(System.in);repeat=in.nextInt();for(ri=1; ri
package com.test;
import java.util.Scanner;
public class Test40010 {
public static void main(String[] args){
int ri,repeat;
int number,sum,n;
Scanner in=new Scanner(System.in);
repeat=in.nextInt();
for(ri=1; ri=0){
sum+=n%10;
n=n/10;
number++;
if (n==0&&n%10==0){
break;
}
}
System.out.println("number="+number+",sum="+sum);
}
}
}