WRITE A QBASIC PROGRAM TO PRINT MULTIPLICATION TABLE

QBASIC PROGRAM TO PRINT MULTIPLICATION TABLE


QBASIC PROGRAM TO PRINT MULTIPLICATION TABLE OF ANY NUMBER




Solution:


We will be using FOR ..NEXT Loop for creating a QBasic program to print the multiplication table of any number. 


CLS    

REM To print a multiplication table of 8.    

FOR i = 1 TO 10    

PRINT 8 ; "X" ; i ; "=" ; 8 * i   
 
NEXT i    

END


You can create a multiplication table of any number using this qbasic program, just change the number 8 with your required number.

1 comment