编辑代码

class Main {
	public static void main(String[] args) {
        //使用for循环嵌套实现99乘法表
        /*for (int a = 1 ; a <= 9 ; a++){
            for (int b = 1; b <= a ; b++){
                int c = a * b;
                System.out.print(b + "*" + a + "=" + c + '\t' );
            }
            System.out.println();
        }*/ int k = 0;
            for(int t = 2; t <=2;t++){
                for(int q=1;q<=100;q++){
                    int o = t * q;
                    k += o;
                    System.out.println(k);

                
            }
            //System.out.println(o);
        }
	}
}