/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package outputclass; /** * * @author Student */ public class Output { /** * @param args the command line arguments */ public static void main(String[] args) { Output o = new Output(); o.go(); } void go(){ int y=7; for(int x=1;x<8;x++){ y++; if (x>4){ System.out.print(++y + " "); } if (y>14){ System.out.print(" x = " +x); break; } } } }