answersLogoWhite

0

If I knew, I would tell you.

(This was an example.)

User Avatar

Wiki User

11y ago

What else can I help you with?

Continue Learning about Engineering

Control statements in java?

A programming language uses control statements to cause the flow of execution to advance and branch based on changes to the state of a program. control statements are mainly three types in java. they are selection, iteration, and jump.


How do you use conditional in a sentence?

An 'if ' or 'switch'. Some languages also support a ternary operator that can be used to evaluate one of two expressions of the same type.


What is flag controlled while loop?

A while loop evaluates a conditional expression at the start of each iteration. If the conditional expression evaluates false, execution passes to the statement that immediately follows the body of the loop. If the conditional expression evaluates true, the body of the loop executes one iteration. When the end of the loop is reached, or a continue statement is encountered within the body of the loop, control passes back to the while statement where the conditional expression is re-evaluated. If a break statement is encountered within the body of the loop, the loop terminates and control passes to the next statement. If a return statement is encountered within the body of the loop, the loop terminates and control passes to the calling function.while (expression) {// repeats until the expression evaluates false}The braces are optional when the body of the loop is a simple statement. Compound statements must be enclosed in braces.A flag-controlled while loop has a simple conditional expression that evaluates a Boolean value:bool x;// ...while (x==true) { // flag-controlled loop// ...}}The above loop can also be written without the equality operator:while (x) { // flag-controlled loop // ...}Moreover, any integral type (such as int or char) will implicitly convert to a bool such that non-zero values evaluate true and zero evaluates false. As such, any integral type can be used in a flag-controlled loop.


What is the type of reasoning that is purposeful self-regulating judgment that includes interpretation analysis evaluation and influence that leaders use to solve problems?

critical


What are the merits and demerits of while loop and do while loop in c plus plus?

You use a while() loop when you want to test a condition before entering a loop for the first time, which may bypass the loop completely. The condition is also tested before beginning each iteration. A do..while() loop always executes the loop at least once, and tests the condition at the end of each iteration before beginning a new iteration.

Related Questions

Which type of a reasoning is based on conditional statements like if A then B?

Deductive


Which type of reasoning is someone using when they use general statements to specific statements?

Inductive


What is the reasoning logically from given statement to a conclusion is called what?

The logical process of moving from a given statement or set of statements to a conclusion is called deductive reasoning. This type of reasoning involves drawing conclusions that are necessarily true based on the information provided in the premises.


What is type of reasoning where conclusions are based on patterns you observe called?

inductive reasoning


What is a inverse statement?

An inverse statement is a type of logical statement that negates both the hypothesis and the conclusion of a conditional statement. For example, if the original conditional statement is "If P, then Q," the inverse would be "If not P, then not Q." Inverse statements are often used in mathematical logic and reasoning to analyze the relationships between propositions. They are distinct from the contrapositive, which negates and switches the hypothesis and conclusion.


What is a hypothetical reasoning?

Hypothetical reasoning is the process of drawing conclusions based on a series of hypothetical statements or assumptions. It involves creating a logical chain of reasoning to explore the potential outcomes or implications of different scenarios. This type of reasoning is commonly used in philosophy, science, and problem-solving.


Type of reasoning where conclusions are based on given facts?

Deductive


What is a type of reasoning where conclusions are based on given facts?

additive property


What type of benchmark is based on personal experience and the leader's judgment?

Reasoning


What type of scientific reasoning relies on gathering and evaluating evidence?

objective means that you make decisions and draw conclusions based on evidence, subjective means that personal feelings have entered into a decison or conclusion.


What does infered mean?

"Inferred" means to derive or conclude information based on evidence or reasoning rather than on direct observation or explicit statements. It involves making educated guesses or assumptions about something.


What is a type of formatting that changes the appearance of cells in an Excel worksheet based on a condition or criteria is called?

Conditional Formatting.