/* * 0+6=6 * 1+5=6 * 2+4=6 * …… * 6+0=6 * * */ public static void test3(){ int j = 6; for (int i = 0; i <=6; i++) { System.out.println(i+"+"+j+"="+(i+j)); //0+6=6 j=j-1; } }