answersLogoWhite

0

Nothing special, eg:

switch (c) {

case 'A':

/* use any 'logic' you want */

break;

default:

/* use any 'logic' you want */

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Why you use for loop inside switch statement?

Because you have to repeat something. (Or you can use while-loop, too.)


What is the difference between 'switch' statement and 'if' statement?

we can use switch statement in multiple time but in if statement we can not use multiple time


What is a logic argument?

A logic argument is a statement of logic. The term "argument" means a statement that could be true or false. A Statement that has not been tested as true or false is known as a theory. Logic is the term meaning the structure of an argument or statement and how it applies in its use.


Can a continue statement be used in a switch statement?

If you have a loop in your switch statement or around your switch statement, you can use the continue statement in that. You cannot use a continue statement outside of a loop (do, for, or while).


What programming languages use a C switch statement?

There are two programming languages which use a C switch statement. The two languages are C and C++, hence the name C switch statement. There may be more, but those are the most obvious ones


What can you use to explain the statement in the geometric proof?

Yo could try using logic.


What is the use of switch statement in java?

In java, a switch statement is used to simplify a long list of 'if' statements. A switch statement takes the form of:switch (variableName){case condition1; command1;case condition2; command2;...}


In command prompt what does the if switch do?

There is not switch called "if". We generally use "if" statement in batch programming in DOS.


What is the similarity between 'if' statement ans 'switch' statement?

A Switch statement can be considered as a series of if. else if. else statements. whatever condition is satisfied, the code block would get executed. if (cond 1) { } else if (cond 2) { } else if (cond 3) { } ...... } else if (cond N) { } else { } switch { case 1: .... case 2: .... .... case N: ... default: ... } Difference: In the if else blocks, if one condition is satisfied, all other blocks are ignored In Switch blocks, unless you have break statements inside each condition block, the subsequent blocks would not be ignored.


How do you choose multiple if statement and switch statement?

If you must evaluate two or more expressions separately, use multiple if statements. If you only need to test all the possible evaluations of a single expression, use a switch.


How if else if statement is differ from switch in general in java?

An else statement is comparing to items, while a switch statement is used to compare multiple items. So if you need multiple results from one statement use a switch but for booleans or very specific functions use a if else statement. Else If ex. if(a=6){System.out.println("It is six");} else(){System.out.println("It is not six");} Switch ex. switch(a){ case 1: System.out.println("it is one"); break; case 2: System.out.println("it is two"); break; default: System.out.println("it is not one or two"); break; } Basically a switch is a good way to check against a lot of possibilities.


Is A condition statement uses à as its notation?

No, a condition statement does not use "à" as its notation. In programming and logic, condition statements typically use symbols such as "if," "then," or logical operators like "&&" (AND), "||" (OR), and "!" (NOT) to express conditions. The notation "à" is not standard in these contexts.

Trending Questions
Was trevithick the first ever to build the steam train? How is the hardness of steel rated in en? In the high pressure side of the large copper tube there is a blue filter that has two valves like bicycle intertubes have on them What are they and can the filter be removed for cleaning? Why do you need a clean room for integrated circuit design? Is there a dictionary or list of rotary tool bits and what they are used for? What is a sentence with contrive in it? When surfing the web the browser interprets the HTML command found in a document file and displays it as? Is the B programming language a high or low level programming language? What are the difficulties in evaluating foreign projects? What is the shell script program for adding five digit numbers? How can PVC be both hard and soft? What is the Mild steel tensile strength in KNmm2? Is surgical steel the same quality as titanium for naval piercings? Does TIMER IC 4020BP replace CD4020? Which are practical examples of how people in the developed world could make a big difference in how much water they use? Why did they invent shoes? How do engineers find out where in a well comes from? In a lawn irrigation system is a closed loop piping system instead of the dead end piping system for the pop-up oscillating sprinkler heads more effective in preventing heads from emerging from grade? Does window 7 come with a c plus plus compiler already installed? What to do to change c to c plus plus in turbo c plus plus?