You are on page 1of 1

Shaina Marie Cantiga Jabla

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())?

 There are two user-defined functions which is ( int and char ).


 Int functions is to creates an Integer object initialized with the value provided in your
program or my program.
 Char functions is used to determine whether the specified char value (ch) is a letter or
not.

You might also like