Kizspy | Question: 21
(Choose 1 answer)
What is the purpose of an if-else statement in programming?
A. It is used to decide whether the part of the code will be executed or not based on the specified condition.
B. It allows you to repeat a block of code a specified number of times.
C. It is used to define a function in a programming language.
D. It is used to declare variables and assign values to them.