answersLogoWhite

0

PROGRAMMING LANGUAGE: QBASIC/VERSION 1.1

CLS '*** (CL)ear the (S)creen

FOR eachNum%=1 TO 10

IF eachNum%=5 THEN

PRINT "five"; '*** print number as being alphabet letters

ELSE

PRINT eachNum% '*** print number as being a numerical figure

END IF

NEXT

This FOR/NEXT loop will count up from 1 TO 10; each time printing out the number count that it has currently reached up to.

However, we use an IF/THEN/ELSE select statement to say that when the count reaches 5, then, print out 5 not as a number but instead as the word: five.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is Moshal Scholarship Program?

Moshal Scholarship Program provides scholarships to disadvantaged students in Israel and South Africa. The program offers full scholarships to students in a select range of subjects.


What steps does a supervisor follow to develop a screening panel to screen candiddates?

Identify number on screening panel, select members with a range of experience and background to maximize fairness; appoint leader


How do you change a cell to 26pt on exell program 2003?

Select the cell or range of cells you would like to change.From the formatting toolbar, click the font size drop-down box and select 26.


What area on the status bar is easily can obtain a total average or other inforamtion about the number in a range?

When you select a range of cells, you will see, by default, on the right side of the status bar, "Sum=" followed by the value of the sum of the numeric values in the selected range. You can right click on that part of the status bar and select Average, Count, Max, and other functions to display on the status bar instead of Sum. The value of the function you select, applied to the numbers in the range, will be displayed on the status bar.


How do you select two different ranges on Excel?

Select the first range as normal. Then press and hold the Ctrl key and select the other range with the mouse. The first range will stay selected. You can select as many ranges as you want using this method.


What number range is there for pH?

0-6.99 Acid 7 neutral, and 7.01-14 Basic


To paste a range of cells you only need to select the cell in the corner of the target destination?

You select the cell which will act as the top left cell of the destination.


When pasting a group of copied cells to target range you need the only select the what cell of the target range?

Usually you select the top left cell of the range.


What do you use to restrict a range of cells to only displaying three decimal places?

-- Select the range of cells.-- Pull down Format \ Cells \ Number \ Decimal Places: (fill in '3')


How long is the average program for most school of massages?

The price for a massage school program varies. Most massage school tuition range from around $6,000.00 to $1,300.00 depending on the number of hours the program is.


How do you enter a range into an argument in a function?

You can type it in or select the range using the mouse or keyboard.


To create a pie chart you must select a?

range