How to Make an Infinite Loop Program in Basic

The Basic programming language is just that--basic. It uses commands and terms that make basic sense to just about anyone that would read them. It stands to reason, then, that even though it is considered by some an outdated language, it is still used to carry out very simple tasks. The most simple of Basic programs is the Infinite Loop. It demonstrates how the language works, and how a program in Basic is written.

Things You'll Need

  • PC computer
Show More

Instructions

    • 1

      Program your first command line. Make sure you are on a DOS operating system. Once you are, go to your C prompt and type in your first command line. This first line will be your text. This can be anything. If you want the line of text to be "hello," type in the following program line, then press return afterward: 10 Print "hello."

    • 2

      Program your second command line. This will be the line that creates the infinite loop. Type in the following program line, then press return afterward: 20 Goto 10.

    • 3

      Run the program. Simply type "run" in the C prompt and press return. The word "hello" will fill the screen from top to bottom continuously, until you press escape to stop the program.

Related Searches:

Comments

You May Also Like

  • How to Stop an Infinite Loop

    Loops are programming devices that specify that a section of a program is to be performed one or more times. Typically they...

  • How to Use an Infinite Loop

    The patterns and methods you use in programming reflect your own approach to problem solving. Often, a programming requirement may potentially be...

  • How to Fix an Infinite Loop

    When in the course of programming an application, the program is going to run across several errors. This is inevitable, as programming...

  • How to Configure DHCP on Cisco Routers

    Dynamic Host Configuration Protocol (DHCP) is a network protocol used by computer hosts to receive an IP address assignment and other TCP/IP...

  • How Can Infinite Loops Be Created?

    In computing, an infinite loop is a sequence of instructions (or code) that will repeat endlessly, as there is no condition that...

  • How to Create a While Loop in Python

    Computers are much better than people at performing repetitive tasks over and over. You may have a large (and sometimes infinite) list...

Related Ads

Featured