English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

please,answer fast,i hv to prepar it for my board exam on 28 mar.

2007-03-25 17:48:56 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

20 input"please enter ur name:"; name
60 print"the name u entered is :"; name
70 end

(20 is the line number, input is the command, and the user input data is stored in a variable called name)
(again 60 line number, print is the output command, and name is the variable thats been called for the output)
(70 end is the closing of the program in basic)

please check the syntax

just recollected my 12 board exams. hope this helps

2007-03-25 17:55:25 · answer #1 · answered by give me more 1 · 1 1

In Basic (GW Basic, Basica, turbo basic, etc.) we use the INPUT command to get a response from the user using keyboard and then to see the result from the console, we use the PRINT command as an output.
10 Rem "This is a sample"
20 Input "Enter your age:",age
30Print :Your age is ",age
....
that is how you use the INPUT/OUTPUT in basic

cheers!

2007-03-26 01:03:02 · answer #2 · answered by ronaldtuibeo 1 · 0 0

Here's some advice: reschedule your exam for a much later date, and spend the time until then actually studying the things you need to know, instead of waiting until the last two days to learn things as basic as 1+1. If you are having to ask these kinds of questions at this point, you are going to fail. There is nothing you can do about it.

2007-03-26 00:52:31 · answer #3 · answered by Rex M 6 · 0 2

fedest.com, questions and answers