int ctr = 1; do { System.out.println(ctr); // print ctr value ctr++; // increment ctr value by 1 }while(ctr <= 10);