这几个程序都 是用LOOP 语句,定义一个变量I , 初使化,满足条件,反值然后再LOOP, 我也是刚刚学,这是基础,给你思路自己去弄吧,不过不要把大把的时间浪费在这里。

解决方案 »

  1.   

    第1道题答案,后面的题类型都差不多,自己好好研究,做这都要靠别人,不用学编程了。
    public class Loop1{
    public static void main(String[] args){
    int[][] a=new int[5][5];
    for(int i=0; i<5; i++){
    for(int j=0; j<5; j++){
    a[i][j]=(i+1)*(j+1);
    System.out.print(a[i][j]+"  ");
    }
    System.out.println();
    }
    ;
    }
    }
      

  2.   

    写了好长时间,写不好啊,我只会这样写了  
    import java.util.*; 
                                                                                    
    class numPrint1 { 
        public static void main(String[] args) { 
            String fileRead = "1 2 3 4 5"; 
            StringTokenizer tokens = new StringTokenizer(fileRead); 
            while(tokens.hasMoreTokens()) { 
                System.out.print(tokens.nextToken() + "\t"); 
            } 
            System.out.println(""); 
        } 
    }
    大家见笑了啊  初学者.....
    阶乘:
    public class jiecheng
    {
    static long function(int n)
    {
    if(n==1)
    return 1;
    else return n*function(n-1);
    }
    public static void main(String[] args)
    {
    int n=10;
    System.out.println(n+"!="+function(n));
    }
    }别的在考虑一下~~~~
      

  3.   

    class jiujiu 
    {
    public static void main(String[] args) 
    {
    for(int i=0;i<9;i++){
    for(int j=0;j<(i+1);j++){
    int temp=(i+1)*(j+1);
    System.out.print((i+1)+"*"+(j+1)+"="+temp+" ");
    }
    System.out.println();
    }
    ;
    }
    }九九表
      

  4.   

    我还是来一个简单的吧!99乘法表
    public class test2{
    public static void main(String args[]){
    for(int i = 1; i < 10; i ++){
    for(int j = 1; j <= i; j++)
    System.out.print(" " + i*j + " ");
    System.out.println();
    }
    }
    }
      

  5.   

    我也是刚学的:第一题我做的如下:
    public class A{
    public static void main(String args[]){
    int i,j,k;
    for (i=1;i<=5;i++){
    k=0;
    for (j=1;j<=5;j++){
    k=k+i;
    System.out.print("  "+k+"  ");
    }
    System.out.println();
    }
    }
    }
      

  6.   

    第一题
    public class Test
    {
    public static void main(String[] args)
    {
    for(int i=1;i<26;i++)
    {
    System.out.print(i+" ");
    if(i%5==0)
    System.out.println("");
    }
    }
    }
      

  7.   

    第二题(用来有很多解啊)
    public class Test
    {
    public static void main(String[] args)
    {
     int x=0;
     int y=0;
     int z=0;
     for(x=0;x<20;x++)
     {
      for(y=0;y<34;y++)
      {
      for(z=0;z<100;z++)
      {
      if(z%3==0)
      {
      if((5*x+3*y+z/3==100)&&(x+y+z==100))
                    System.out.println(x+" "+y+" "+z);
            }    }
            }
         }
     }
    }
      

  8.   

    第三
    public class Test
    {
    public static void main(String[] args)
    {
    for(int i=1;i<10;i++)
    {
    for(int j=1;j<10;j++)
    System.out.print(i+"x"+j+"="+i*j+" ");
    System.out.println("");

    }
    }