answersLogoWhite

0

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

User Avatar

Wiki User

11y ago

What else can I help you with?

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 numbers as even numbers in a loop in qbasic?

To print even numbers in a loop in QBasic, you can use a FOR loop to iterate through a range of numbers and check if each number is even. An even number can be identified using the modulus operator (MOD). Here's a simple example: FOR i = 1 TO 20 IF i MOD 2 = 0 THEN PRINT i END IF NEXT i This code will print all even numbers from 1 to 20.


How do you print even number in qbasic?

In QBasic, you can print even numbers using a simple loop. For example, you can use a FOR loop to iterate through a range of numbers and then check if each number is even by using the modulus operator (MOD). Here's a sample code snippet: FOR i = 1 TO 20 IF i MOD 2 = 0 THEN PRINT i NEXT i This code will print all even numbers from 1 to 20.


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.


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.