View Single Post
  #2 (permalink)  
Old 11-07-2007, 09:21 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,266
hardwired is on a distinguished road
Code:
public class PseudoCode { public static void main(String[] args) { int count = 0; boolean moreOfThis = true; do { // pick a random number // ask user to guess // check results if(successful) ask if they'll have another go if(yes) reset count else break; _or_ moreOfThis = false; } while(moreOfThis); } }
Reply With Quote