You are on page 1of 1

Design the flowchart and program of the following problem statement.

(Choose only one problem)


PROBLEM #1. The user will input an integer (as the number of row) and two options (option1 and option2) and
will output the following depending on the row and options: (Note: two spaces between “*”)

Number of rows: 5
Option1: “Top” Option 2: “Right”
*
* *
* * *
* * * *
* * * * *

Option1: “Top” Option 2: “Left”


*
* *
* * *
* * * *
* * * * *

Option1: “Bottom” Option 2: “Right”


** * * *
** * *
** *
**
*

Option1: “Bottom” Option 2: “Left”


** * * *
* * * *
* * *
* *
*
PROBLEM #2. The user is required to input two integer value (max and num) and will display a number sequence
depending on the following options:
If the user chooses max, it will display the following series up to the max number (max)
Option “A”: All even numbers and their total
Option “B”: All odd numbers and their product
Option “C”: All numbers divisible by 3
If the user chooses num, it will display the following series based on the number of terms (num)
Option “A”: Fibonacci Series
Option “B”: Numbers that are divisible by 4
Option “C”: Numbers that are divisible by 5

You might also like