Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 23rd, 2012  |  syntax: None  |  size: 0.19 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. int number;
  2.                 do{
  3.                         TextIO.put("Enter a number 1 - 10: ");
  4.                         number = TextIO.getlnInt();
  5.                 }while(number > 10 || number <= 0);
  6.                 TextIO.putln();
  7.                 TextIO.put("Your lucky number is: " + number);