PRG 211 Week 3 DQ 1

Write a 200- to 300-word response for each of the following:
• What is sequential flow of a program?
• What is branching within a program?
• How is branching controlled?
• What is the role of an if statement in control structures?
Response :
An if statement is a statement that covers basically anything that you could ask when using the word if. For example: if date =<31 cout << " today cannot be halloween";

This statement could be used in October on a callendar and would show that no matter what day it is, it could not possibly be halloween if the date is not equal to or less than 31.
Powered by