Using an if/else statement to control the flow of a program is common in selection structures.
Selection structures allow the program to choose different paths of execution based on certain conditions, which is exactly what if/else statements do.
sequence structures
selection structures
iteration structures
machine language structures
1 answer
Using an if/else statement to control the flow of a program is common in selection structures.
Selection structures allow the program to choose different paths of execution based on certain conditions, which is exactly what if/else statements do.