Jump to content
Main menu
Main menu
move to sidebar
hide
Social
Discord
Facebook
Twitter
Explore
Languages
Tasks
Random page
Rosetta Code
Search
Search
Create account
Log in
Personal tools
Dark mode
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Loops/While: Difference between revisions
Page
Discussion
English
Read
View source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
View source
View history
Refresh
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Help
Content added
Content deleted
Inline
Revision as of 01:22, 30 March 2013
(
view source
)
rosettacode>Cbasicuser
(
→{{header|Creative Basic}}
)
← Older edit
Revision as of 01:27, 30 March 2013
(
view source
)
rosettacode>Cbasicuser
(
→{{header|Creative Basic}}
)
Newer edit →
Line 233:
WHILE X>0
PRINT X
▼
X=X/2
▲
PRINT X
ENDWHILE
'Output starts with
512
1024
and ends with
0
1
.
'Putting the following in the loop will produce output starting with
1024
512
and ending with
1
0
:
'X=X/2
▼
'PRINT X
▲
'X=X/2
PRINT:PRINT"Press any key to end."
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information
OK
Toggle limited content width