Graderpractice for programmers

254271 Fun of Prog 63 - Loops Practice

Awaiting submission
Copy the for loop below into a program and use a Scanner to read an int from the user to set the value of y.
for (int x = 3;  x <= y; x++) {
   System.out.print(" -> " + x);
}
Awaiting submission
Copy the for loop below into a program and use a Scanner to read an int from the user to set the value of b.
for (int a = b;  a <= 14; a++) {
   System.out.print(" -> " + a);
}
Awaiting submission
Level up Use the loop below to print out the even numbers between 1 and x (where x is an int entered by the user).
int x = sc.nextInt();
int y = ???
for (int i = 1; i <= y; i++) {
   System.out.println(i*2);
}
Awaiting submission
Let's rewrite C using conditionals!

Use the code below and complete the inside of the loop.

int x = sc.nextInt();
for (int i = 1; i <= x; i++) {
   if (...) {
      System.out.println(i);
   }
} 
Awaiting submission
Use i-- in your for loop to write a program that counts down from x to 0 (where x is an integer input by the user).
Awaiting submission
Level up Modify your program from E to print "lift-off" instead of 0.
Awaiting submission
Write a program that prints any number of checkboxes. The user will enter the number of checkboxes required as an integer. A checkbox looks like this:
+-+
| |
+-+
Awaiting submission
Level up Same as G, except that the checkboxes must be arranged horizontally.