Answer:
do{
Scanner s1 = new Scanner( System.in);
int a = s1.newInt();
System.out.println(a);//println will automatically add a newline after each number input.
}while(a<100);
And the program will terminate on first input itself as 123 is more than 100.
Explanation:
Please check the answer section.