Ask FunTrivia
All Questions
Newest Questions
Unanswered Questions
Recent Answers
Revisited Questions
Most Asked Questions
Post a Question
Join FunTrivia for Free
: Hourly trivia games, quizzes, community, and more!
Ask FunTrivia: Questions and Answers
Answers to 100,000 Fascinating Questions
Welcome to FunTrivia's
Question & Answer
forum!
Newest Questions
Post a Question
Search All Questions
Please cite any factual claims with citation links or references from authoritative sources. Editors continuously recheck submissions and claims.
Archived Questions
Goto
Qn #
What is the command to print the first 10 natural numbers in QBasic?
Question #108027. Asked by
richimishra
.
Bronxiteone
Answer has
2
votes
Bronxiteone
16 year member
61 replies
Answer has
2
votes.
For X=1 to 10
LPRINT X
NEXT X
{No Link -- Personal experience}
Aug 16 2009, 6:21 AM
Bronxiteone
Answer has
2
votes
Bronxiteone
16 year member
61 replies
Answer has
2
votes.
For X=1 to 10
Lprint X
Next X
Lprint x*(x+1)/2
This prnts the first ten natural numbers and prints its sum.
Aug 17 2009, 11:39 AM
FREE!
Get a new mixed Fun Trivia quiz each day in your email. It's a fun way to start your day!
Your Email Address:
Sign in
or
Create Free User ID
to participate in the discussion