'set both vertical/horizontal position on screen of where to print out the text message...
vertLinePos% = 13 '...set vertical screen position of text
horiTabPos% = 7 '...set horizontal screen position of text
'set text message...
message$ = "This is the message text to flash. (Press [SPACEBAR] key to stop...!)"
CLS '...(CL)ear the (S)creen
DO '...keep LOOP-ing UNTIL when user presses any IN-coming KEY to stop....
'print visible message, first...
LOCATE vertLinePos%, horiTabPos% '...print message in one same fixed place
PRINT message$ '...print message as text
FOR pauseCount = 1 TO 32767: NEXT '...pause to show message
'overwrite message with a series of blank spaces: " "...
LOCATE vertLinePos%, horiTabPos% '...print message in one same fixed place
PRINT STRING$(LEN(message$), " ") '...print message as blank spaces
FOR pauseCount = 1 TO 32767: NEXT '...pause to show message
LOOP UNTIL INKEY$ <> ""
END '...END of program/halt program code execution
By 'create a matrix multiplication program'...
I'll assume you mean how to create a Times Tables number square:-
QBASIC Code/Start...
==>
CLS
PRINT "PROGRAM: Twelve Times Tables Number Square"
FOR intTimes% = 1 TO 12
FOR intTables% = 1 TO 12
'*** calculate times tables sum...
sum% = intTimes% * intTables%
'*** format number of of spaces...
noOfSpaces% = 0
IF LEN(STR$(sum%)) = 2 THEN noOfSpaces% = 2
IF LEN(STR$(sum%)) = 3 THEN noOfSpaces% = 1
'*** set colors...
COLOR 8, 7
IF intTimes% = intTables% THEN COLOR 1, 4
IF intTimes% = 1 THEN COLOR 4, 11
IF intTables% = 1 THEN COLOR 4, 11
'*** print out times tables sum...
PRINT sum%; SPC(noOfSpaces%);
NEXT
NEXT
END
<==
...QBASIC Code/End.
write a vb program to find the magic square
First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.
write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?
a triangle then a square :)
Same with other Visual Basic program, programming in FoxPro will require you to have the right syntax.
write a vb program to find the magic square
First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.
trytytytytytytytytrf 6 bcvvtgujhy6
That really depends on what sort of program you are trying to build, what do you want the program to do?
dim a input a
write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?
write a c program to accept a number and generate a square root cube and exponential values
A C program to square matrix is a math problem. In the math problem you write down all the outer boundary values of matrix in a circle, then write down the inner value.
You can use the Math.sqrt() method.
a triangle then a square :)
Same with other Visual Basic program, programming in FoxPro will require you to have the right syntax.
int square (int N) return N*N;