import java.util.Scanner;
public class jzy_06{
public static void main (String args[]){
Scanner hehe = new Scanner (System.in);
int a = hehe.nextInt();
int b,o,p,d,c;
for (i=1;i<i+1;i++){
b=a/10;
if(b>10){
c=c+1;
}
else break;}
for(p=1;p<=c;p++){
d=a/10;
o=o+d;
}
}
System.out.println(o);
}
这个代码在编译的时候提示 System.out.println(o);需要标识符怎么破
public class jzy_06{
public static void main (String args[]){
Scanner hehe = new Scanner (System.in);
int a = hehe.nextInt();
int b,o,p,d,c;
for (i=1;i<i+1;i++){
b=a/10;
if(b>10){
c=c+1;
}
else break;}
for(p=1;p<=c;p++){
d=a/10;
o=o+d;
}
}
System.out.println(o);
}
这个代码在编译的时候提示 System.out.println(o);需要标识符怎么破