# Search:

Type: Posts; User: Seananigans

1. ## Thread: Coding a statement that increments from 20-40 (only in even numbers) - fall-thru switch

by Seananigans
Replies
5
Views
516

### Re: Coding a statement that increments from 20-40 (only in even numbers) - fall-thru switch

Thank you for the explanation. Our instructor was using it to illustrate the switch-case fall-through, and I wanted a clearer understanding.
2. ## Thread: Situations for using while loops, do while loops, and for while loops.

by Seananigans
Replies
6
Views
479

### Re: Situations for using while loops, do while loops, and for while loops.

DO-WHILE

do
{
statements;
}while (condition);

As the while loop, it can be counter-controlled or sentinel- controlled.
The body of the loop continues to execute as long as the condition is...
3. ## Thread: Coding a statement that increments from 20-40 (only in even numbers) - fall-thru switch

by Seananigans
Replies
5
Views
516

### Fall-thru Switch

Hello all,

I need help comprehending a fall-thru switch that would increment 20-40 using even numbers, and how to catch the odd numbers using the option in the switch.

Here is my code:

...
4. ## Thread: Coding a statement that increments from 20-40 (only in even numbers) - fall-thru switch

by Seananigans
Replies
5
Views
516

### Coding a statement that increments from 20-40 (only in even numbers) - fall-thru switch

Hello all,

I need help comprehending a fall-thru switch and how to catch the odd numbers using the option in the switch.

Here is my code:

public class HolstienSFallThruSwitch

{
5. ## Thread: coding a sentinel-controlled do/while loop within a for

by Seananigans
Replies
1
Views
303

### [SOLVED] coding a sentinel-controlled do/while loop within a for

sentinel-controlled do/while loop within a for statement

for(int c = 1; c <= teamName; c++)
{
do
{
System.out.printf("\nWhat is the name of team no. %d?", c );
...
Results 1 to 5 of 5