0% found this document useful (0 votes)
26 views2 pages

Flowchart and Pseudocode

Uploaded by

raiayi752
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

Flowchart and Pseudocode

Uploaded by

raiayi752
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ACTIVITY #5: Algorithms – FLOWCHART and

PSEUDOCODE
NAME: RESELDA VALLENTE PENASO

CLASS & SECTION: II-26 BTLE-ICT

Write a pseudocode that ask user to input two values. The program then will compare the
inputted values. After comparing the program will display the following message below:

"The first number is greater than the second number"


"The second number is greater than the first number"
or;
"The two numbers are equal"

1. Begin
2. Display "Enter the following: First Number, Second Number"
3. Input firstNumber, secondNumber
4. If firstNumber > secondNumber Then
5. Print "The first number is greater than the second number"
6. Else If secondNumber > firstNumber Then
7. Display "The second number is greater than the first
number"
8. Else
9. Display "The two numbers are equal"
10. End If
11. End
Based on the given problem and your pseudocode, draw a flowchart. Use the decision symbols
for making the comparison.

BEGIN

Print “ Enter the Input


following: First firstNumber,
Number, Second secondNumber
Number “

True Print “The first number is


If If
(firstNumber =

(firstNumber >
secondNumber)

greater than the second


secondNumber) number”

False

If True Print “The second number


(secondNumber > is greater than the first
firstNumber) number”

False

Print “The two


numbers are equal”

END

You might also like