0% found this document useful (0 votes)
19 views3 pages

Pseudo Code

The document outlines a pseudocode algorithm for generating a sequence based on user input. It involves initializing variables, iterating through a loop to compute values, and displaying the resulting sequence. The algorithm includes steps for starting, inputting a number, and stopping after the sequence is displayed.

Uploaded by

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

Pseudo Code

The document outlines a pseudocode algorithm for generating a sequence based on user input. It involves initializing variables, iterating through a loop to compute values, and displaying the resulting sequence. The algorithm includes steps for starting, inputting a number, and stopping after the sequence is displayed.

Uploaded by

Marvin Yap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Pseudocode

STEP 1:

Start

STEP 2:

Enter the value of number (n)

STEP 3:

For counter = 1 To n

n=a+b

a=b

b=n

Next

Do While (counter < 1)


Start
n=a+b

a=b

b=n
Input a number
counter + = 1

ListBox1.Items.Add(n)

End
n=a+b
STEP 4: a=b
Display The sequence b=n

STEP 5: a

Stop n=a+b
a=b
Stop b=n
Is counter< 1
counter + = 1

a
End
STEP 1:

Start

STEP 2:

Enter the value of number (n)

STEP 3:

n=a+b

a=b

b=n

Loop

Do Until (counter > 1)

n=a+b

a=b

b=n

ListBox1.Items.Add(n)

counter + = 1

Loop

STEP 4:

Display The sequence

STEP 5:

Stop
Start

Input a number

n=a+b
a=b
b=n

a
F T n=a+b
a=b
b=n
Is counter> 1
Sequence counter + = 1

End a

You might also like