public class test9
{
public static void main(String args[])
{
int a;long s=8;long d=0;long f=0;long z=0;
for(a=1;a<=10;a++)
{
//long s=8;long d=0;long f=0;
d=d*10+1;
f=s*d;
z=f+z;
//System.out.println(s+" ");
System.out.println(d+" ");
System.out.println(f+" ");
System.out.println(z+" ");
System.out.println(" ");
}
//System.out.println(f);
}
}
JAVA课程3 FOR语句8+88+888+8888前十项之和
最新推荐文章于 2022-09-22 16:59:08 发布