Home
Random
Log in
Settings
About Rosetta Code
Disclaimers
Rosetta Code
Search
Loops/While: Difference between revisions
Page
Discussion
← Older edit
Newer edit →
Loops/While
(view source)
Revision as of 01:27, 30 March 2013
2 bytes added
,
11 years ago
→{{header|Creative Basic}}
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."
Anonymous user
rosettacode>Cbasicuser