Search:

Type: Posts; User: Seananigans

Search: Search took 0.18 seconds.

  1. 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. 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. 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. 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. [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