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/08/27 03:07:28
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);
}
}
}