...QBASIC program code...
name$="Jack"
startCharPos%=2
howManyChars%=2
PRINT MID$(name$,startCharPos%,howManyChars%)
...output...
ac
EXPLANATION
The MID$() function allows you to select characters from out of a string.
In the above case the string is,...
name$="Jack"
...where...
J= string position 1
a= string position 2
c= string position 3
k= string position 4
...thus, if we select MID$(name$,2,2)...
...this code is actually saying...select from the name...the character which begins at position 2 = a/and, extract 2 characters going along from there... = ac.
Using TurboC? kbhit and getch are your friends
you do this 10 print "0112358132134" use the whole of the thing
QBASIC GRAPHICS There any many different things you can draw in QBASIC; ranging from... -dots -lines -rectangles -circles -shapes empty/or, filled in(painted) -you can even do LOGO style programming to draw graphics with; by joining up connected lines -animations are possible, too ==== QBASIC BUILT-IN HELP FILE + CODE EXAMPLES In order to view the QBASIC built-in Help file...; first, load the QBASIC program itself...; and, then, do a combination key press of: [SHIFT] + [F1] Use the built-in QBASIC Help file to learn more about how to use these 'graphic related' commands, and, more...! The QBASIC Help file also contains plenty of 'example codes'; which you can just use 'copy & paste'; then, RUN...to see what the output effect will be...???
There is no shortcut key of input in qbasic
The different types of operators in QBASIC are:Arithmetic OperatorsRelational OperatorsLogical Operators
You use the relevant formula.
You could use the CONCATENATE function or the & operator. The following two formulas will do the exact same thing. They both use the MID function to extract two pieces of text and then combine them into one piece of text. =CONCATENATE( MID( A2, 2, 3 ), MID( A3, 2, 4 ) ) =MID( A2, 2, 3 ) & MID( A3, 2, 4 )
the extensions of qbasic are that, there are only 80 pixels to write in the qbasic
In order to Download Qbasic you may do one, both or none of these two things: 1.) Go to "http://www.softpedia.com/get/Programming/Coding-languages-Compilers/Qbasic.shtml" and click download or 2.) use "Google.com" with the keywords Qbasic free download to find another website with a free qbasic downlaod.
Using TurboC? kbhit and getch are your friends
qbasic is important because its technology
Most computer languages use the asterisk, "*", for multiplication.
You would use the MEDIAN function. If the cells with your data were from A2 to D50, then the function would be:=MEDIAN(A2:D50)
The MID function is used to extract some text from the middle of an existing piece of text. If you wanted to get characters from the start of text, you can use the LEFT function, but that is not sufficient if you wanted to start extracting text from the middle of a piece of text. Using the MID function you can start at any point in the text and get an amount of characters from it. You specify the text, then the starting point and then the amount of characters you want. For example, the following will give you BCD by starting at the second character and getting three characters from it. =MID("ABCDEF",2,3) There are lots of times MID can be useful. Sometimes you can use the find function to find a character to start from, like finding the first space, and starting from there. So suppose you have a list of names that include titles like Mr. or Mrs. and you want to find the first letter of the surname. That would require finding the first space and then the next character. So if you had Mr. Smith in cell B2, to extract the S you would use the MID function and the FIND function like this: =MID(B2,FIND(" ",B2)+1,1)
apni maa se puch madherchod kis kis base pe use choda gya tha..... whi btayegi ki kaun QBASIC ka khoj kiya tha..
PRINT SQR(9) ...output... 3 (Thus, giving you the square root of the number 9; I presume this what your question meant...?)
you do this 10 print "0112358132134" use the whole of the thing