返回列表 發帖
回復 1# tonyh
  1. public class ch14x
  2. {
  3.   public static void main(String args[])
  4.   {
  5.        System.out.println("---------------for-------------------------");

  6.     int x,y;
  7.     for (x=1 ;x<10;x++)
  8.     {

  9.        System.out.print(x+" ");

  10.        for (y=1 ;y<10;y++)
  11.        {
  12.        System.out.print(x+"X"+y+"="+(x*y)+"\t");
  13.        }
  14.        System.out.println();
  15.     }
  16. }
複製代碼

TOP

返回列表