answersLogoWhite

0


Best Answer

You need a code that can run to print even numbers between 10 and 100 using the qbasic command.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: To print even nobetween 10 and 100 on qbasic command?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you generate a series 1 3 5. using qbasic?

There are multiple ways to generate that particular string, several more than can be listed in one answer. For example: CLS PRINT "1 3 5" or CLS REM An easy "1 through 5, odds only" FOR loop. FOR X = 1 TO 5 STEP 2 PRINT X; NEXT X or even CLS INPUT "Please type in a number series with no line breaks (spaces okay):", numbers$ PRINT numbers$


How do you open a Qbasic file?

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...???


Program to print all the even numbers of an array in visual basic?

find even number in array


WAP To print the squares of all even numbers from 1 to 20?

CLS PRINT "PROGRAM: Print squares of all even numbers from 1 to 20" PRINT PRINT "number", "squared" PRINT FOR number% = 1 TO 20 IF number% MOD 2 = 0 THEN PRINT number%, number% * number% END IF NEXT END


Write a algorithm to print all even numbers in descending order?

AnswerIf A=10, B=2... Then the algoritm is :-STEP1 : START.STEP2 : A=10.STEP3 : B=02.STEP4 : C=A-B.STEP5 : PRINT C.STEP6 : STOP.AnswerYou cannot print every even number in descending order, because there is no greatest even number. Or you want something like this: infinityinfinity-2infinity-4Answerstep 1: start step 2: Input Nstep 3: If N

Related questions

How do you print the first 20 even numbers in qbasic?

startNum% = 0 endNum% = 38 counter% = 1 PRINT "Counter", "Number" PRINT FOR num% = startNum% TO endNum% STEP 2 PRINT counter%, num% counter% = counter% + 1 NEXT *NOTE*: This prints out all of the even numbers starting from 0 up to 38; if you didn't wish 0 to be included as well; then, change it to say... startNum% = 2 endNum%= 40


How do you print out a pdf document back and front?

As with any document format with multiple pages, one would first command the printer to print only the 'odd' pages. Then after inserting those pages back into the paper feed properly command the printer to print only the 'even' pages. Voila!!


When you are using the command prompt if you type in the print command it just says no file to print How do you print what is on the command prompt screen?

Use the print screen key. Without minimizing what u wanna capture then press the it. U should goto graphic editors like MS Paint and Press CTRL+V, save the image, then print it… but you only get the full screen or the active window with using print screen key. If u wanna get the command prompt screen. I recommend PCHand Screen Capture. It could help u capture anything on the screen, it offers seven capture modes and a build-in editor with which u can edit and enhance the captured images. Im using it, it is easy to use, even for a Novice. …Hope it could help u! http://www.screen-capture-record.com/


How can you print the list in a folder?

AnswerTypically, there should be a file menu at the top left of your screen where you can access printing and even see a print preview! You could always print the file or if that doesn't work, highlight the list you intend to print and put it in a Microsoft word document or even notepad which can be found in programs, accessories from the start menu of windows.AnswerIn a real OS like Unix (eg, Linux) you can run the following command to print a listing of the current directory:ls | lp


How do you generate a series 1 3 5. using qbasic?

There are multiple ways to generate that particular string, several more than can be listed in one answer. For example: CLS PRINT "1 3 5" or CLS REM An easy "1 through 5, odds only" FOR loop. FOR X = 1 TO 5 STEP 2 PRINT X; NEXT X or even CLS INPUT "Please type in a number series with no line breaks (spaces okay):", numbers$ PRINT numbers$


How do you open a Qbasic file?

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...???


When you add the even and odd numbers from 1 to 20?

Upon adding the even and odd numbers from 1 to 20, you should arrive at the sum of 210. ===== ...QBASIC program... sumTotal% = 0 CLS PRINT "PROGRAM: Add numbers 1 to 20" PRINT PRINT "Number", "Total" PRINT FOR eachLoopNo% = 1 TO 20 PRINT eachLoopNo%, sumTotal% = sumTotal% + eachLoopNo% PRINT sumTotal% NEXT PRINT "Sum total ="; sumTotal% ...Output... PROGRAM: Add numbers 1 to 20 Number Total 1 1 2 3 3 6 4 10 5 15 6 21 7 28 8 36 9 45 10 55 11 66 12 78 13 91 14 105 15 120 16 136 17 153 18 171 19 190 20 210 Sum total = 210 Press any key to continue...


How do you print odd pages and even pages in MS Excel?

MS Excel does not have the ability to selectively print odd or even pages. You need to use the function on your printer for that option. When you print from Excel, instead of just clicking the print button, select print and click on the printer PROPERTIES button. If your printer has the ability to selectively print odd or even pages, you will select that option according to your printer's specifications.


Q2 Write a program to print even numbers between 10 and 50?

You can use int i; for (i = 10; i <= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.


What is the result of this program REM A equals 5 END Print all let equals 7?

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.


How do you print only the active worksheet in excel?

The default option is to only print the current worksheet when you print. In the Print dialog box there is an option to tell it what you want to print, even down to selected cells only.


How can you save webpages for later viewing that have no file command just 'print now' command?

If you're using a windows PC (even vista) you can hit ALT + F to make the file menu appear regardless of whether or not its on the web browser. If you only need a small bit of text or an image, you can always hit 'Print Screen', open Paint and paste, a screencapture of what's displayed on the screen will save. If you're talking about a pop-up window with information in it; ALT+F might not work.