public class Chengfabiao_1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a,b;
for (a=1;a<=9;a++)
{
for (b=1;b<=a;b++)
{
System.out.print(a+"*"+b+"="+a*b+" ");
}
System.out.print("\n");
}
}
}
/**
* è¾åºä¹æ³å£è¯è¡¨
* @author young
*
*/
public class DulTest {
public static void main(String[] args) {
System.out.println("************************* 9Ã9ä¹æ³å£è¯è¡¨ *****************************");
for (int x = 1; x <= 9; x++) {
for (int y = 1; y <= x; y++) {
System.out.print(y + "Ã" + x + "=" + y * x + "\t");// printlnæ¹ä¸ºprintä¸æ¢è¡è¾åº
}
System.out.println(); // æ¢è¡æ¾å¨è¿é
}
}
}
* è¾åºä¹æ³å£è¯è¡¨
* @author young
*
*/
public class DulTest {
public static void main(String[] args) {
System.out.println("************************* 9Ã9ä¹æ³å£è¯è¡¨ *****************************");
for (int x = 1; x <= 9; x++) {
for (int y = 1; y <= x; y++) {
System.out.print(y + "Ã" + x + "=" + y * x + "\t");// printlnæ¹ä¸ºprintä¸æ¢è¡è¾åº
}
System.out.println(); // æ¢è¡æ¾å¨è¿é
}
}
}
温馨提示:答案为网友推荐,仅供参考