一个for循环打印乘法九九表

public static void main(String[] args) {
    	for(int i=1, count=1; i<=9;count++){
    		System.out.print(count*i + " ");
    		if(count==i){
    			System.out.println();
    			i+=1;
    			count=0;	
    		}
    	}
    }

  

原文地址:https://www.cnblogs.com/whelk/p/4443098.html