d. (user enters "hello" and 4)
System.out.println("Enter a name.");
String name = keysIn.next();
keysIn.nextLine();
System.out.println("Enter a number.");
int num = keysIn.nextInt();
if (num % 2 == 0) {
int counter = 0;
while (counter <= num) {
System.out.println(counter + " " + name);
counter += 2;
}
} else {
int counter = num;
do {
System.out.println(name);
counter--;
} while (counter >= 1);
}