You need to test a condition and then execute one set of statements if the condition is true. If the condition is false, you need to execute a different set of statements. What structure will you use? (Write out a sample code)

Respuesta :

Answer:

if/else is probably the most simple structure to use. It takes a lot of manually entering strings and what not though. Not sure if this is what you're wondering.

If/else structure will use to execute a different set of statement.

What kind of boolean expression comes out true?

The condition and instructions are what differ; that's where the magic happens.

The condition is a Boolean expression: an expression that evaluates to either true or false. Boolean values are another type of data type in programming languages, and they can only ever hold true or false.

if/else is probably the most simple structure to use. It takes a lot of manually entering strings and what not though.

Learn more:

https://brainly.com/question/13265286

#SPJ2