Affiliate Marketing Tips – How to Program a Question and Answer Program in Basic

November 14th, 2009 Leave a comment Go to comments


Basic language, for computers, is still used today in even some of the most complex machines. While not as integral a part of the computer programming landscape as it once was, it is still a building block that is often used. A fun way to test out the Basic language’s functions is by programming a simple question and answer sequence. This will show you how Basic works, and the logic behind all computer programming.

Instructions

  1. Program your first question and input line. Make sure you are on a DOS operating system. Once you are, go to your “C” prompt and type in your first line, which will be your question/input line. It will read like this:10 Print “What is your name?” N$
  2. Program your answer line. Press “Enter.” Once you are there, program your second line of programming. This will be your answer line. It will look like this:20 Print “Hello, “;N$;”. I hope you have a nice day.”
  3. Run the program. Press “Enter.” Type in “run” on your “C” prompt. The question “What is your name?” will appear with an area for you to type in an answer. Type in your name and press “Enter.” Immediately, the next line will print: “Hello, Bob. I hope you have a nice day.”

Related Products:





  1. No comments yet.
  1. No trackbacks yet.