answersLogoWhite

0


Best Answer

If I knew, I would tell you.

(This was an example.)

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which type of reasoning is based on conditional statements?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.