Computer Science, asked by puneetkaushik23108, 5 months ago

Why do we use conditions in programming?​

Answers

Answered by sohailans563
5

Explanation:

Why We Use Conditions: Conditions allow us to control what the program does and perform different actions based on these “if, then” logic statements. What makes computer programs great is the ability to interact with a user- this is only possible with conditions that direct this type of interaction.

i think is right ▶️

Answered by saifa1fathima
4

Answer:

This is the ability to test a variable against a value and act in one way if the condition is met by the variable or another way if not. They are also commonly called by programmers if statements. To know if a condition is True of False, we need a new type of data: the booleans. They allow logical operations.

Explanation:

Conditionals are expressions that evaluate to either true or false. They are mostly used to determine Program Flow through if statements and while loops.Conditional statements are used to decide the flow of execution based on different conditions. If a condition is true, you can perform one action and if the condition is false, you can perform another action.

Similar questions