Professional Documents
Culture Documents
Shaina Marie Cantiga Jabla: For and While) Because (If) Is For Testing Conditions, and (For and While) Is To
Shaina Marie Cantiga Jabla: For and While) Because (If) Is For Testing Conditions, and (For and While) Is To
1. What control structures did you use (aside from sequential) in obtaining the
necessary outputs? Why did you choose those control structures?
I use ( if , for and while ) because (if) is for testing conditions, and (for and while) is to
create cycles. All of them are executed from the top of the source file to the bottom. One
by one.
2. How many user-defined functions that the program has? What is the role of
each function (excluding the main())?