0% found this document useful (0 votes)
19 views1 page

Create An Algorithm and Flowchart That Allows The User To Enter A Number and Display The Numbers From Zero (0) To The Given Number

The document describes an algorithm to display numbers from 0 to a user-entered number by initializing a variable d to 0, prompting the user for a number, incrementing d by 1 and checking if it is less than or equal to the entered number, and ending when the condition is false.

Uploaded by

Aron Claveria
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 views1 page

Create An Algorithm and Flowchart That Allows The User To Enter A Number and Display The Numbers From Zero (0) To The Given Number

The document describes an algorithm to display numbers from 0 to a user-entered number by initializing a variable d to 0, prompting the user for a number, incrementing d by 1 and checking if it is less than or equal to the entered number, and ending when the condition is false.

Uploaded by

Aron Claveria
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/ 1

Create an algorithm and flowchart that allows the user to enter a number and display the

numbers from zero (0) to the given number.

1. start

2. Initialize the variable d to 0

3. ask the user to enter a number

4. is the d less than or equal to the number inputted?

 if T then the value of d will start to 1 and will


increment until it reaches to its desired number. Start
 if F it will terminate.

5. End

d=0

“Enter a
number”

d=d+1

F
d <=
Stop
number

You might also like