int a = input("Please enter an integer", 10); int i=1; while(i<=a) { println(i); i++; }