you could try "what will 1 1 212 1 2 3 4 n one =?" and add it up like this.:):):):):):):)
or i don't know...
1
1
1
2
3
4
+212=224
QBASIC operators are listed as follows.../along with some example QBASIC code... ->LOGICAL OPERATORS AND OR NOT EXAMPLE QBASIC CODE:- A=1 B=1 IF (A AND B) THEN PRINT "Result: True" ELSE PRINT "Result: False" ...output... Result: True A=1 B=2 IF (A AND B) THEN PRINT "Result: True" ELSE PRINT "Result: False" ...output... Result: False -> MATHEMATICAL OPERATORS + plus - minus * multiply / divide MOD division remainder ^ raise to the power EXAMPLE QBASIC CODE:- num1=4 num2=2 PRINT num1 + num2 PRINT num1 - num2 PRINT num1 * num2 PRINT num1 / num2 PRINT num1 MOD num2 PRINT num1 ^ num2 ...output... 6 2 8 2 0 16 -> COMPARISON OPERATORS = equals > greater than < lesser than >= greater than/or, equals <= lesser than/or, equals <> not EXAMPLE QBASIC CODE:- num1 = 6 num2 = 8 IF num1 = num2 THEN PRINT "Equal to" IF num1 > num2 THEN PRINT "Greater than" IF num1 < num2 THEN PRINT "Lesser than" IF num1 >= num2 THEN PRINT "Greater than/or, equal to" IF num1 <= num2 THEN PRINT "Lesser than/or, equal to" IF num1 <> num2 THEN PRINT "NOT equal" ...output... Lesser than Lesser than/or, equal to NOT equal
Write a program which takes the temperature in farhenheight.the program should display the farhenheight temperature as well as centigrade. C= (f-32)*5/9
Write a program which takes the gender and salary ,the age from user. the program should calculate and display the following information. i. If gender is male and age is greater >=18,then the tax =5%of the salary. ii. If gender is female and age is >=18,then tax=3%of salary. The program should display the output as follows: Gender = Age = Tax = Salary before tax = Salary after tax =
-1
36v
REM A equals 5 END Print all let equals 7? ...when you RUN the above QBASIC program by pressing function key [F5]; then, the Output Screen will display the following... Press any key to continue... In other words, a totally 'blank screen' will be shown; followed by the usual 'Press any key to continue...' message; pressing any key will return you straight back to the Editor Screen; where you can continue writing code. Also, see FOOTNOTE(2) below. ==== FOOTNOTE(2): CONCERNING THIS PARTICULAR LINE OF QBASIC CODE REM A equals 5 END Print all let equals 7? Even if we were take away the REM statement from this line of code; in order to make that code executable. We would get nothing but ERROR MESSAGES! Because this is NOT correct QBASIC code! A equals 5 ...is wrong! There is no 'equals' statement in QBASIC; instead, the line should have said... A=5 ...where = is the assignment symbol/read the = sign as saying 'becomes the value of'...so, A becomes the value of 5. END ...is correct QBASIC code; but, that would also mean the program ends here. So, whatever lines following this END statement would NOT get executed! Print all ...is more nonsense; first PRINT which is a valid QBASIC statement; should have been written using all capital letters. Second, QBASIC code doesn't have an 'all' statement. Unless you were using 'all' as a variable name; in which case the output would simply show as, nil; that is, if you haven't already assiged the 'all' variable name a value. So, if all is an unintialised variable name then the value printed out would be.... 0 let equals 7 ...more nonsense, again, I'm afraid! LET, written using capital letters, is a correct QBASIC statement; but, it's meant to be followed by a variable name; and, in this case there's none; unless 'equals' is meant to be a variable name. Then, the code should have been written as... LET equals = 7 Even when I've gone and corrected the code to say the following... A=5 END PRINT all LET equals = 7 ...still doesn't make any sense?! The program would silently execute the first line; then, immediately, stop...when it gets to reach the second line END statement; there would be no output being shown at all; only a blank screen. Plus, all other lines of code...after the END statement...would be completely ignored. Frankly, I don't understand this line of code at all?! I think, it's written out entirely wrong; probably, that's exactly why it's been deliberately commented out using REM.
It should display the result of 2+6 which is 8.
QBASIC operators are listed as follows.../along with some example QBASIC code... ->LOGICAL OPERATORS AND OR NOT EXAMPLE QBASIC CODE:- A=1 B=1 IF (A AND B) THEN PRINT "Result: True" ELSE PRINT "Result: False" ...output... Result: True A=1 B=2 IF (A AND B) THEN PRINT "Result: True" ELSE PRINT "Result: False" ...output... Result: False -> MATHEMATICAL OPERATORS + plus - minus * multiply / divide MOD division remainder ^ raise to the power EXAMPLE QBASIC CODE:- num1=4 num2=2 PRINT num1 + num2 PRINT num1 - num2 PRINT num1 * num2 PRINT num1 / num2 PRINT num1 MOD num2 PRINT num1 ^ num2 ...output... 6 2 8 2 0 16 -> COMPARISON OPERATORS = equals > greater than < lesser than >= greater than/or, equals <= lesser than/or, equals <> not EXAMPLE QBASIC CODE:- num1 = 6 num2 = 8 IF num1 = num2 THEN PRINT "Equal to" IF num1 > num2 THEN PRINT "Greater than" IF num1 < num2 THEN PRINT "Lesser than" IF num1 >= num2 THEN PRINT "Greater than/or, equal to" IF num1 <= num2 THEN PRINT "Lesser than/or, equal to" IF num1 <> num2 THEN PRINT "NOT equal" ...output... Lesser than Lesser than/or, equal to NOT equal
When the overhang equals 4 feet or more
A 24 hour clock displays digits whose sum total equals the number of led's used to display them 94 times a day. A 12 hour clock displays them 108 times a day.
No, the first is a number (0x91), the second is a pointer.
You cannot. There is no information about the distribution, or even what the graph is meant to display!
It is [x] = [-10]where [x] and [-10] are 1x1 matrices. Hardly worth the effort!
a b means return true if the value of a is equal to the value of b, otherwise return false. a = b means assign the value of b to the variable a.
Yes. Of Course!
A "hand" is the measurement used to determine height of the horse and equals 4 inches.
Know thyself