Register - Log In


FunTrivia Homepage



  • New Questions

  • Unanswered


  • Post a Question
  • Goto Qn #





    Archives

    What is the command to print the first 10 natural numbers in QBasic?

    Question #108027. Asked by richimishra. (Aug 16 09 1:42 AM)


    Bronxiteone

    For X=1 to 10
    LPRINT X
    NEXT X

    {No Link -- Personal experience}

    Aug 16 09, 6:21 AM
    Bronxiteone

    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 09, 11:39 AM


    Find something useful here? Please help us spread the word about FunTrivia. Recommend this page below!


    Sign up to see all responses!

    Create a Free ID instantly to see all recent responses, post your own follow-ups or questions, and access over 1,000,000 trivia questions!

    Choose a User Name:
    Your Email Address:
    Choose a Password:

    I agree by the terms outlined in FunTrivia's Conditions of Use





    Other Similar Questions & Answers


    What is the command to print the sum of first 10 natural numbers?

    When writting numbers, when should one print out the number (i.e. two) - and when should one use the digit (i.e. 2)?

    Under the command structure of the Nazis, who was Adolph Hitler's second in command to take over in the case of him not being able to carry on?

    Suggested Related FunTrivia Quizzes - 90,000 currently online

    1 QBasic
    Welcome to my QBasic quiz! If you like to program in QBasic, then take this quiz!
    Software and Programming Tough
    10 Q
    jeremysr
    Apr 15 04
    885 plays
    2 64 or Command
    This quiz has "Star Fox 64" and "Star Fox Command" questions. The questions deal with an event that happened in these two games and the answers deal with if it happened in "Star Fox 64", or "Star Fox Command", neither or both.
    Star Fox Average
    10 Q
    06paynch
    Dec 17 06
    330 plays
    3 The Natural
    Some questions about one of my favorite sports' movies of all time!
    Natural, The Average
    10 Q
    aggielaw
    Aug 09 07
    1173 plays




    "Ask FunTrivia" is for entertainment purposes only, and answers offered are unverified and unchecked by FunTrivia. We cannot guarantee the accuracy or veracity of ANY statement posted. Feel free to post an updated response if you feel that an answer is inadequate or incorrect. Please thoroughly research items where accuracy is important to you using multiple reliable sources. By accessing our website, you agree to be bound by our terms of service.