Computer Science, asked by mirza75, 1 year ago

why do we use condition in programming

Answers

Answered by pranamsinha
6
The condition can be anything that evaluates as True or False. Comparisons always return True or False, for example == (equal to), >(greater than), < (less than.)

The else part is optional. If you leave it off, nothing will happen if the conditional evaluates to ‘False’.


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 byprogrammers if statements. To know if a condition is True of False, we need a new type of data: the booleans. They allow logical operations.
Answered by Anonymous
11
computer is device understand only binary language so for make him understand we use condition statement
Similar questions