### ARRAY in QBASIC

Greatest among 5 numbers using Array CLS DIM num(4) PRINT "Enter any any 5 numbers" FOR j = 0 TO 4 INPUT num(j) NEXT j lrg = num(0) FOR j = 0 TO 4 IF lrg > num(j) THEN lrg …

### Library Functions of QBasic Examples

Library Functions (Click Here) Convert Decimal to Binary   CLS INPUT "ENTER DECIMAL NUMBER" ; D WHILE D < > 0 R = D MOD 2 S\$ = STR\$(R) + S\$ D = D \ 2 WEND PRINT "BINARY EQUIVALENT VALUE"; S\$ …

### IF Statement and FOR Statement in QBasic Examples

To find positive negative or zero. CLS INPUT "Enter any number&quot ; a IF a > 0 THEN PRINT "The number is positive" ELSEIF a < 0 THEN PRINT "The number is negative" ELSE PRINT "The number is zero" END …

### Library Functions in QBASIC-Introduction

Introduction: A function is a built-in formula or a ready made program which helps us to perform a certain task such as mathematical, financial, logical etc. A function manipulates data passes to it and returns either a string or a …

### QBASIC Programming- Simple

QBASIC Programming Sum of two numbers CLS REM To find Sum of two numbers INPUT "Enter the first number"; a INPUT "Enter the second number"; b SUM = a + b COLOR 5 PRINT TAB(5); "The sum of two number …

### QBASIC Statements

QBASIC Statements: Any command or the instructions in the QBASIC is called a statement. Statements are classified into executable and non-executable. Executable statement specify actions and non-executable statements specify characteristics, arrangements and initial values of data. Some of the QBASIC …