Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Sharp PC-1403
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Programming example=== Here is a sample program that computes the factorial of an integer number from 0 to 69. It can be called by entering a number or an expression followed by pressing <code>DEF</code> <code>F</code> (in run mode). <syntaxhighlight lang="QBasic"> 10 "F" AREAD N ''allows to start the program with <expression> DEF F 20 F=1 ''Set start value of F to 1 30 FOR I=1 TO N ''counts I from 1 to N 40 F=F*I ''calculates F=F*I 50 NEXT I ''repeats loop from line 40 60 PRINT STR$ N+"!=";F ''print result - i.e. 5!=120. 70 END ''end of program </syntaxhighlight>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)