Title
import java.util.Scanner;
public class Checker
{
public static void main(String[] args)
{
int number;
// Create a Scanner object for keyboard input.
Scanner keyboard = new Scanner(System.in);
// Get a number from the user.
System.out.print("Enter a number in the range of 1 through 100: ");
number = keyboard.nextInt();
while (number>100)
{
System.out.print("Invalid input. Enter a number in the range " +
"of 1 through 100: ");
number = keyboard.nextInt();
}
}
}
public class LoopConversion
{
public static void main(String[] args)
{
int count = 0;
//convert to for loop
while (count < 5)
{
System.out.println("count is " + count);
count++;
}
}
}
int i=0;
while (i<5)
System.out.println(i);
i++;