public class Main { public static void main(String[] args) { for (int i = 0, j = 0; i < 5; i++, j--) System.out.println("i = " + i + " j= " + j); } } /* i = 0 j= 0 i = 1 j= -1 i = 2 j= -2 i = 3 j= -3 i = 4 j= -4 */