You are on page 1of 3

1.

Given a set of 5 numbers that include both positive and negative data
values. Create a program to read in these values one at a time and count the number
of positive values (including zero values) and the number of negative values found in
the set. After the required values are determined, print out these counted
values. (using while loop)
Note: Miss nag dagdag lang po ako ng another source code and output para po sa user pag mag iinput
ng number, sorry po nahirapan po kase ako mag analyze ng statement sa number 1, late na rin po kase
ako nag chat sainyo for clarification kaya po siguro hindi po kayo nakapag reply.
2. The initial value of the radius of a circle is equal to one unit and each succeeding
radius is one unit greater than the value before it. Build a program to compute the area
of the circle starting with R=1.0 up to R=5.0, then print out each radius and the
corresponding area of the circle. (using a do-while loop)

You might also like