99乘法表

package hey;

public class math99 {

public static void main(String[] args) {

//99乘法表
int sum;
for(int x=1;x<10;x++)
{
for(int y=1;y<10;y++)
{
sum=x*y;
System.out.print(x+ "*"+ y +"="+sum +" ");
}
System.out.println();
}
}
}

留言

這個網誌中的熱門文章

android,更改標題名稱,及圖片。

JAVE題目:產生10個亂數值,範圍為10-100之間,再利用「選擇排序法」進行由小到大的排序。並將排序後的結果列出來。